registerUser method
String registerUser (String firstName, String lastName, String email, String password)
Implementation
String registerUser(
String firstName,
String lastName,
String email,
String password,
) \{
return """
mutation\{
signUp(data: \{firstName: "$firstName", lastName: "$lastName", email: "$email", password: "$password"\})
\{
accessToken
user\{
_id
firstName
lastName
email
image
joinedOrganizations\{
_id
name
image
description
isPublic
creator\{
_id
firstName
lastName
image
\}
\}
createdOrganizations\{
_id
name
image
description
isPublic
creator\{
_id
firstName
lastName
image
\}
\}
membershipRequests\{
organization\{
_id
name
image
description
isPublic
creator\{
_id
firstName
lastName
image
\}
\}
\}
adminFor\{
_id
\}
\}
refreshToken
\}
\}
""";
\}