Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete node doesn't delete all predicates. #1524

Closed
pawanrawal opened this issue Sep 25, 2017 · 1 comment
Closed

Delete node doesn't delete all predicates. #1524

pawanrawal opened this issue Sep 25, 2017 · 1 comment
Assignees
Labels
kind/bug Something is broken.
Milestone

Comments

@pawanrawal
Copy link
Contributor

pawanrawal commented Sep 25, 2017

User Steven mentioned on slack that delete node doesn't work for him.

mutation {
  schema{
    nodeType: string @index(term) .
    name: string .
    date: dateTime .
    weight: float .
    weightUnit: string .
    lifeLoad: int .
    stressLevel: int .
    plan: string .
    journalEntrhy: string .
  }
  set {
    _:day1 <nodeType> "TRACKED_DAY" .
    _:day1 <name> "July 3 2017" .
    _:day1 <date> "2017-07-03T03:49:03+00:00" .
    _:day1 <weight> "262.3" .
    _:day1 <weightUnit> "pound" .
    _:day1 <lifeLoad> "5" .
    _:day1 <stressLevel> "3" .
    _:day1 <plan> "modest day" .
    _:day1 <postMortem> "win!" .
    _:day2 <nodeType> "TRACKED_DAY" .
    _:day2 <name> "July 4 2017" .
    _:day2 <date> "2017-07-04T03:49:03+00:00" .
    _:day2 <weight> "260.1" .
    _:day2 <weightUnit> "pound" .
    _:day2 <lifeLoad> "3" .
    _:day2 <stressLevel> "4" .
    _:day2 <plan> "focus day" .
    _:day2 <postMortem> "double win!" .
    _:day3 <nodeType> "TRACKED_DAY" .
    _:day3 <name> "July 5 2017" .
    _:day3 <date> "2017-07-05T03:49:03+00:00" .
    _:day3 <weight> "259" .
    _:day3 <weightUnit> "pound" .
    _:day3 <lifeLoad> "8" .
    _:day3 <stressLevel> "9" .
    _:day3 <plan> "go with the flow" .
    _:day3 <postMortem> "I survived" .
  }
}
#### Query "tracked days already added"
{
  all_tracked_days(func: eq(nodeType, "TRACKED_DAY")) {
    name
    date
    weight
    lifeLoad
    stressLevel
    _uid_
  }
}
#### Results
{
  "data": {
    "all_tracked_days": [
      {
        "name": "July 5 2017",
        "date": "2017-07-05T03:49:03Z",
        "weight": 259,
        "lifeLoad": 8,
        "stressLevel": 9,
        "_uid_": "0x2"
      },
      {
        "name": "July 3 2017",
        "date": "2017-07-03T03:49:03Z",
        "weight": 262.3,
        "lifeLoad": 5,
        "stressLevel": 3,
        "_uid_": "0x3"
      },
      {
        "name": "July 4 2017",
        "date": "2017-07-04T03:49:03Z",
        "weight": 260.1,
        "lifeLoad": 3,
        "stressLevel": 4,
        "_uid_": "0x4"
      }
    ]
  }
}
#### Try to delete July 3
mutation {
  delete {
     <0x3> * * .
  }
}

@pawanrawal pawanrawal added the kind/bug Something is broken. label Sep 25, 2017
@pawanrawal pawanrawal added this to the v0.8.3 milestone Sep 25, 2017
@pawanrawal pawanrawal self-assigned this Sep 25, 2017
@pawanrawal
Copy link
Contributor Author

A fix has been merged to master and release/v0.8.2. The release binaries for v0.8.2 should be updated in a bit.

@manishrjain manishrjain added the kind/bug Something is broken. label Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Development

No branches or pull requests

2 participants