Skip to main content

fetchUserInfo property

String fetchUserInfo

<span class="feature">read / write</span>

Implementation

String fetchUserInfo = '''
query Users(\$id: ID!)\{
users(where: \{ id: \$id \}) \{
_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
isPublic
creator\{
_id
firstName
lastName
image
\}
\}
\}
adminFor\{
_id
\}
\}
\}
''';