Files
twenty/packages/twenty-front/src/modules/users/graphql/queries/getCurrentUser.ts
2024-03-21 10:47:25 +01:00

54 lines
995 B
TypeScript

// This query cannot be put in the graphQL folder because it cannot be generated by the graphQL codegen.
import { gql } from '@apollo/client';
export const GET_CURRENT_USER = gql`
query GetCurrentUser {
currentUser {
id
firstName
lastName
email
canImpersonate
supportUserHash
workspaceMember {
id
name {
firstName
lastName
}
colorScheme
avatarUrl
locale
}
defaultWorkspace {
id
displayName
logo
domainName
inviteHash
allowImpersonation
subscriptionStatus
activationStatus
featureFlags {
id
key
value
workspaceId
}
currentBillingSubscription {
status
interval
}
}
workspaces {
workspace {
id
displayName
logo
domainName
}
}
}
}
`;