Skip to content

Instantly share code, notes, and snippets.

@joaquinacuna
Created November 4, 2020 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquinacuna/e264c810f63148fcf8cae80578d1fd51 to your computer and use it in GitHub Desktop.
Save joaquinacuna/e264c810f63148fcf8cae80578d1fd51 to your computer and use it in GitHub Desktop.
GraphQLClient _client = graphQLConfiguration.clientToQuery();
QueryResult result = await _client.mutate(
MutationOptions(
document: addMutation.register('$_email','','$_password'),
),
);
if (result.data["success"]!=null){
print('The user was created successfully!');
}else{
print('There was an error!');
print(result.data["register"]["errors"]["email"][0]["message"]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment