Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

return=minimal not documented #624

Closed
sted opened this issue May 12, 2023 · 3 comments
Closed

return=minimal not documented #624

sted opened this issue May 12, 2023 · 3 comments

Comments

@sted
Copy link

sted commented May 12, 2023

Environment

  • PostgREST version: v11.0.1

Description of issue

It seems that the header "Prefer: return=minimal" is not documented.

@steve-chavez steve-chavez transferred this issue from PostgREST/postgrest May 12, 2023
@steve-chavez
Copy link
Member

@sted Oh wow, you're right. return=minimal is the default for writes though.

Can you send a PR? 🙏

@sted
Copy link
Author

sted commented May 15, 2023

Sure.
Is it correct to say that return=minimal is mostly a no-op, in the sense that:

  1. It is the default for write queries
  2. It is not considered for read queries

?

@laurenceisla
Copy link
Member

laurenceisla commented May 15, 2023

@sted

  1. Yes, doing a POST, PATCH, etc. without a Prefer: return=... header works the same way as sending a Prefer: return=minimal.
  2. Yes

steve-chavez added a commit to steve-chavez/postgrest-docs that referenced this issue Aug 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants