36 lines
558 B
TypeScript
36 lines
558 B
TypeScript
import { graphql } from '~/lib/common/generated/gql'
|
|
|
|
export const emailFieldsFragment = graphql(`
|
|
fragment EmailFields on UserEmail {
|
|
id
|
|
email
|
|
verified
|
|
primary
|
|
userId
|
|
}
|
|
`)
|
|
|
|
export const userEmailsQuery = graphql(`
|
|
query UserEmails {
|
|
activeUser {
|
|
id
|
|
emails {
|
|
...EmailFields
|
|
}
|
|
hasPendingVerification
|
|
}
|
|
}
|
|
`)
|
|
|
|
export const userActiveWorkspaceSlugQuery = graphql(`
|
|
query UserActiveWorkspaceSlug {
|
|
activeUser {
|
|
id
|
|
activeWorkspace {
|
|
id
|
|
slug
|
|
}
|
|
}
|
|
}
|
|
`)
|