Deletion (N * * .) in v1.1.x has a different behaviour

Hello everyone. I’ve updated dgraph version to 1.1.0 and it seems ‘delete’ works something different, in ratel:
version:

$ dgraph version
Dgraph version   : v1.1.0
Dgraph SHA-256   : 98db2956f6dd8b7b9b88e02962d2036845b057fe5fe953190eaafac0a83dfcce
Commit SHA-1     : ef7cdb28
Commit timestamp : 2019-09-04 00:12:51 -0700
Branch           : HEAD
Go version       : go1.12.7

schema:

<user_id>: int @index(int) @upsert .

create:

{ set {
    _:user <user_id> "1"^^<xs:int> .
    _:user1 <user_id> "2"^^<xs:int> .
    _:user <friends> _:user1 .
}} # uids: 0x7533, 0x7534

get query:
{get(func:uid(0x7533, 0x7534)) {uid,user_id,friends{uid,user_id}}}

resp:

{ "get": [
  {
    "uid": "0x7533",
    "user_id": 1,
    "friends": [
      {
        "uid": "0x7534",
        "user_id": 2
      }
    ]
  },
  {
    "uid": "0x7534",
    "user_id": 2
  }
]}

delete:

{ delete {
    <0x5415> * * .
    <0x5416> * * .
}}

and the same getting responds again the same result, nodes and relations remain. In version 1.0.x this deletion was working and all predicates were deleting.

You need to set the Type schema.

Please read the releasing post about 1.1.0

Thank you very much and sorry for disturbing! Now I’ve seen the changes and should much rewrite. Thanks again

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.