dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

fix(Bug): Update Dgraph Alias to work with GQL aliases

Open all-seeing-code opened this issue 3 years ago • 1 comments

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:

  1. e2e test with alias
  2. Resolver test with alias

Fixes

Fixes GRAPHQL-1078


This change is Reviewable

all-seeing-code avatar Mar 15 '21 13:03 all-seeing-code

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 29 '22 07:04 CLAassistant