kimf
10/31/2018, 9:57 PMinfo attribute we noticed that if the client leaves out “externalServiceId” we can’t use that attribute in a later stage in the code…babak.c
10/31/2018, 10:21 PMasync function login(parent, args, context, info) {
const user = await context.db.query.user({
where: { email: args.email }
}, ` { id password } `
)
...
// here we pass { id password } instead of info in place of passing in info to the resolver . You also haven't mentioned if you want the client to request fields beyond externalServiceId because in that case you can't use the above stated method since it is hard coded, the user's selection set will be ignored. Does that make sense?Fran Dios
11/01/2018, 2:31 AMfragmentReplacements, it can augment the info object but I haven’t use it myself. I think there was a post in the forum explaining this.kimf
11/01/2018, 10:26 AMfragmentReplacements