What is the equivalent of an upsert mutation (as shown here - https://hasura.io/docs/1.0/graphql/core/mutations/upsert.html) on dgraph graphql?
I’m looking for a way to make an update mutation which should fallback to an add mutation given that the item to be updated does not exist.
rajas
(Rajas Vanjape)
2
Hi @ArjunInventor,
Welcome to the Dgraph Community !!
Dgraph DQL does support upsert procedure using the upsert block . To use DQL in Dgraph Graphql you may need to use custom DQL directive.
Linking a related discuss post : How to upsert using GraphQL?
Feel free to ask any other questions/queries which you may face while using Dgraph.