Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Allow return=minimal for INSERT #127

@steve-chavez

Description

@steve-chavez

Feature request

Allow specifying return=minimal for insert. Right now return=representation is the default.

See: https://github.com/supabase/postgrest-js/blob/master/src/lib/PostgrestQueryBuilder.ts#L58

Context

When return=representation is specified, PostgREST generates a INSERT INTO ... RETURNING.
The RETURNING part requires SELECT privileges, which sometimes a user might not have.

return=minimal doesn't generate a RETURNING.

Related discussion: supabase/supabase#270

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions