I'm trying to:
- Fetch a list of users (email, id)
- Run a loop over that list to call a graphql query
- The graphql query would need to consume variables from the javascript query
When I try triggering the GraphQL query and passing additionalScope
for the variables, it doesn't seem to use the variables.
As a test, I removed the loop and I'm trying to just trigger for one user:
linkSupportMember2.trigger({
additionalScope: {
email: allMembers.data.email[5],
userId: allMembers.data.id[5],
userIdString: allMembers.data.id[5]
},
onSuccess: (queryResults) => {
return queryResults;
},
onFailure: (error) => {
return error;
}
});
return linkSupportMember;