Last active
November 22, 2022 04:10
-
-
Save ehatricksmith/ff6696a94057823e81b799ac5f4a114c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type TagsDataQuery = { | |
readonly project: { | |
readonly __typename: "Project"; | |
readonly id: string; | |
readonly tags: { | |
readonly __typename: "TagsConnection"; | |
readonly totalCount: number; | |
readonly nodes: ReadonlyArray<{ | |
readonly __typename: "Tag"; | |
readonly id: string; | |
readonly title: string; | |
readonly color: string | null; | |
} | null>; | |
}; | |
} | null; | |
}; | |
export type TagsDataQueryVariables = Exact<{ | |
id: Scalars["UUID"]; | |
offset?: InputMaybe<Scalars["Int"]>; | |
limit: Scalars["Int"]; | |
}>; | |
const { | |
data: { project }, | |
} = await apolloClient.query<TagsDataQuery, TagsDataQueryVariables>({ | |
query: PROJECT_EXPORT_TAGS_QUERY, | |
variables: { id: projectId, limit: 25, offset }, | |
fetchPolicy: "network-only", | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment