Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.
1import { graphql } from './gql/gql'; 2import { Pokemon } from './fragment'; 3 4const x = graphql(` 5 query Pok($limit: Int!) { 6 pokemons(limit: $limit) { 7 id 8 name 9 } 10 } 11`); 12 13console.log(Pokemon);