Skip to content
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

Upsert requires where.id in order to create record? #7

Open
tayloraucoin opened this issue Feb 22, 2021 · 1 comment
Open

Upsert requires where.id in order to create record? #7

tayloraucoin opened this issue Feb 22, 2021 · 1 comment

Comments

@tayloraucoin
Copy link

upsert-needs-id.mp4

When attempting to create a profile with the upsert request, it would not take attributes without a uuid string. This seems against the point of upsert, as without an id it should create the record and return the generated id.

Please advise if this is a bug or a piece of intended logic.

Until then I will have to generate a uuid on the frontend for each attempt, which is not ideal.

Thank you for your contribution to the stellar Postgraphile library!

@outdoteth
Copy link

Wow. Wasted 2 hrs trying to figure this out. What a useless library... wtf is the point of doing an upsert if I have to know the uuid before hand?! Getting the uuid and then updating requires 2 db reads anyway which negates the entire point of using an upsert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants