Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GRAPHQL): Undo the breaking change and tag it as deprecated. (#7602)
Fixes GRAPHQL-1119 We had this bug fix PR #7158 that also went into 20.11 release branch which disallow id argument in get queries on interfaces. Because it was breaking change , we are now rolling back this change and mark it as deprecated, and change later. Orignal bug https://discuss.dgraph.io/t/id-directive-and-interfaces/11642 Workaround So, we have disallowed @id argument from get query on interface, but the normal query still have it. So, users can change their get queries with simple query as follows. Interface with @id field interface Foo { id: String! @id } We can change below query query{ getFoo(id:"test"){ id } } to query{ queryFoo(filter: {id:{eq: "test"}}){ id } } Related Posts https://discuss.dgraph.io/t/id-directive-and-interfaces/11642 https://discuss.dgraph.io/t/was-there-a-change-to-generated-queries-with-id-directives-in-v20-11-1/12591
- Loading branch information