Skip to content

Instantly share code, notes, and snippets.

@ehatricksmith
Last active November 22, 2022 04:10
Show Gist options
  • Save ehatricksmith/ff6696a94057823e81b799ac5f4a114c to your computer and use it in GitHub Desktop.
Save ehatricksmith/ff6696a94057823e81b799ac5f4a114c to your computer and use it in GitHub Desktop.
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