Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
at main 1.7 kB view raw
1import * as Types from "../__generated__/baseGraphQLSP" 2import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core'; 3export type PokemonFieldsFragment = { __typename: 'Pokemon', id: string, name: string, attacks?: { __typename: 'AttacksConnection', fast?: Array<{ __typename: 'Attack', damage?: number | null, name?: string | null } | null> | null } | null }; 4 5export type WeaknessFieldsFragment = { __typename: 'Pokemon', weaknesses?: Array<Types.PokemonType | null> | null }; 6 7export const PokemonFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"pokemonFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Pokemon"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"attacks"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fast"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"damage"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<PokemonFieldsFragment, unknown>; 8export const WeaknessFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"weaknessFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Pokemon"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"weaknesses"}}]}}]} as unknown as DocumentNode<WeaknessFieldsFragment, unknown>;