-
-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: insert embedded resources via computed columns #3226
base: main
Are you sure you want to change the base?
Conversation
95be53c
to
3419b9f
Compare
d7c3354
to
85ad53e
Compare
dfdb39f
to
739af4e
Compare
It seems that #2933 is definitely going to be an issue when -- "tags" is modified inside "upsert_posts"
-- but the LEFT JOIN will show the OLD unmodified "tags"
SELECT * FROM upsert_posts(...) p
LEFT JOIN tags t ON p.id = t.pid; It could be solved by embedding the RETURNING value of the function, but it cannot be further embedded. For example: Here, the curl "http://localhost:3000/posts?columns=name,tags(name)?select=*,tags(name) \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{"name": "my post", "tags": [{"name": "a"},{"name": "b"}]}' [{
"name": "my post",
"tags": []
}] Making curl "http://localhost:3000/posts?columns=name,tags(name) \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{"name": "my post", "tags": [{"name": "a"},{"name": "b"}]}' [{
"name": "my post",
"tags": [{"name": "a"},{"name": "b"}]
}] |
739af4e
to
eb69214
Compare
eb69214
to
fdeffd5
Compare
WIP