Report a GraphQL Bug
What edition and version of Dgraph are you using?
Dgraph Cloud
Edition:
- SlashGraphQL
- Dgraph (community edition/Dgraph Cloud)
If you are using the community edition or enterprise edition of Dgraph, please list the version:
Dgraph Version
$ dgraph version
PASTE YOUR RESULTS HERE
Have you tried reproducing the issue with the latest release?
N/A
Steps to reproduce the issue (paste the query/schema if possible)
Expected behaviour and actual result.
For this schema:
type Block {
id: String! @id
blocks: [Block!]!
}
And these mutations:
mutation {
addBlock(input:{id:"test1", blocks:[{id:"test2", blocks:[]}]}) {
block {
id
blocks {
id
}
}
}
}
mutation {
deleteBlock(filter:{id:{eq:"test2"}}) {
numUids
}
}
This query will fail:
query {
getBlock(id:"test1") {
blocks {
id
}
}
With the error:
Non-nullable field 'id' (type String!) was not present in result from Dgraph. GraphQL error propagation triggered.
A DQL query shows that while the fields of the test2
node have been deleted, the edge from test1
to the dgraph uid of the node still exists.