Skip to content

Joining views together #2789

Closed Answered by laurenceisla
NeerajJai89 asked this question in Q&A
May 17, 2023 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You can flatten the result with the spreading functionality in version 11.0.1 . See https://postgrest.org/en/stable/references/api/resource_embedding.html#spread-embedded-resource

Though, this only works for Many-To-One and One-To-One relationships, so you need to change the order of the embedding, which shouldn't be a problem since it would give you the same result that you mentioned in your example: /time_off?select=*,...employee(*)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@NeerajJai89
Comment options

@laurenceisla
Comment options

Answer selected by NeerajJai89
@NeerajJai89
Comment options

@laurenceisla
Comment options

@NeerajJai89
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2788 on May 17, 2023 20:56.