Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
1import { graphql } from './graphql'; 2import { PokemonFields } from './fragment'; 3 4// prettier-ignore 5const x = graphql(` 6 query Pok($limit: Int!) { 7 pokemons(limit: $limit) { 8 id 9 name 10 fleeRate 11 classification 12 ...pokemonFields 13 __typename 14 } 15 } 16`, [PokemonFields]);