Deletion with upsert is not working

Hi Ritik,

I understand that you may are new to both DQL and GraphQL, and you can expect a learning curve of a few months. I recommend starting with our tour at https://tour.dgraph.io/, which covers both DQL and GraphQL basics.

Regarding GraphQL, you can use any GraphQL tutorial out there. There are hours of content on YouTube that are applicable to Dgraph. However, there are slight differences since Dgraph makes extensive use of directives to create a more customized experience. Additionally, Dgraph automatically generates GraphQL backends based on your schema, which is quite different from many other GraphQL products. This greatly aids developers in building applications quickly.

Underneath of Dgraph’s GraphQL, there’s a standard or convention that shapes the GraphQL schema. It’s a bit complex to explain how it works without writing lengthy pages to someone who isn’t deeply familiar with GraphQL. In fact, you don’t need to know all of the details, as Dgraph is designed to abstract a lot of things for you. However, if you’re interested in using DQL, it’s important to note that doing so may make things more complex than necessary.

Regarding DQL, you’ll need to have a well-defined schema and ensure that objects contain the correct dgraph.type. If either of these aspects is incorrect, functions like Delete wont work.

If you follow the quick start guide at Quick Start - DQL, you’ll get an idea of how things work. When learning something new, it’s best to start with basic tasks like CRUD operations before diving into more complex features.

If you could share any small examples that aren’t working for you, along with a step-by-step description of what you’ve tried, that would be a great starting point.

Looking forward to helping you further.

Cheers!

PS. Take a look at this New to Dgraph? DQL vs. GraphQL, Endpoints, Headers, and Schema Translation