Skip to content

GraphQL: edge cases (lol) #5711

@dpeek

Description

@dpeek

What version of Dgraph are you using?

master

Have you tried reproducing the issue with the latest release?

yes

What is the hardware spec (RAM, OS)?

MacBook PRo 2017 16GB

Steps to reproduce the issue (command/config used to run Dgraph).

type Foo {
  key: String @id;
  bar: Foo;
}
mutation {
  addFoo(input: [{key: "key1", bar: {key: "key2}]) {
    foo {
      key
    }
  }
}
mutation {
  updateFoo(
    input: {
      filter: { key: { eq: "key1" } }
      set: { bar: null }
    }
  ) {
    foo {
      bar {
        key
      }
    }
  }
}

Expected behaviour and actual result.

I would expect this to work by removing an existing edge bar (and the reverse edge if you were doing that too).

It does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/graphqlIssues related to GraphQL support on Dgraph.investigateRequires further investigation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions