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

Documentation Request - Returned uid from Upsert #31

Open
colin-grapl opened this issue Jan 18, 2021 · 0 comments
Open

Documentation Request - Returned uid from Upsert #31

colin-grapl opened this issue Jan 18, 2021 · 0 comments

Comments

@colin-grapl
Copy link
Contributor

How to get assigned UIDs from response

This is a really helpful example for a common use case, but I believe that it doesn't necessarily apply to upserts, or for conditional upserts.

https://dgraph.io/docs/mutations/upsert-block/

I believe that when a node is created as part of an upsert uids will contain the uid, but when the node already exists you have to extract the uid from the json response.

This can be pretty unintuitive and I think it's worth documenting. I don't think I'm necessarily the write person to write that documentation but I'd be happy to help review it.

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

1 participant