DGraph Go client upsert, returning UID

remove the var block e.g:
keyUids as q(func: eq(value, " + someValue + ")) { uid }

And so you will have the uid through the query result.

3 Likes