Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.