Skip to content

Documentation Request - Returned uid from Upsert #31

Description

@colin-grapl

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions