dgraph
dgraph copied to clipboard
fix(Bug): Update Dgraph Alias to work with GQL aliases
Motivation
This PR fixes: GRAPHQL-1078 Before this fix following query used to append aliase'd predicate in lambda resolved field.
query {
queryUser {
id
actualName: name
name: email # email field has been aliased as name which is another field in this type and is used by lambda
intro
}
}
Components affected by this PR
GraphQL resolver
Does this PR break backwards compatibility?
No
Testing
Added following tests in:
- e2e test with alias
- Resolver test with alias
Fixes
Fixes GRAPHQL-1078