Hi @MichelDiz, when can I see the updated doc about deletion with type? I’m sorry for keep asking, the language is still unintuitive for me, so I need a lot of hand-holding.
Not sure if I understood. All deletions can only happen if you have your entities with well-defined Types. In the case of Type System. This is already in the documentation and explained in the blog articles on the topic. In case you want something more “current” with the Master branch. You can choose to view the “Master” documentation.
Sorry the delay, I’m having trouble with the internet provider.
As you’re already doing.
Need to fix mentions only. The answer is that you need to define the Type to be able to delete. Without it, It happens exactly what you are going through.
it is just mentions
See
This is your type.
type User {
u_email: String
# In master version you don't need to define the types "int, uid, string..."
# but you need to define it in some latest releases.
# Next release it will be more simple the type system
}
<u_email>: string @index(hash) @upsert .
Your data need to be like this
{
set {
_:x <u_email> "some@guy.com" .
# You need to set the type of your entities in your mutation
_:x <dgraph.type> "User" .
_:x <name> "Some Guy" .
}
}