{"repo":"0no-co/GraphQLSP","free":true,"listed":false,"github":"https://github.com/0no-co/GraphQLSP","clone":"git clone https://github.com/0no-co/GraphQLSP.git","description":"TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.","language":"TypeScript","stars":460,"topics":["graphql","typescript"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"GraphQLSP This is a TypeScript LSP Plugin that will recognise documents in your TypeScript code and help you out with hover-information, diagnostics and auto-complete. Features - Hover information showing the decriptions of fields - Diagnostics for adding fields that don't exist, are deprecated, missmatched argument types, ... - Auto-complete inside your editor for fields - Will warn you when you are importing from a file that is exporting fragments that you're not using Note that this plugin does not do syntax highlighting, for that you still need something like the VSCode/... plugin Installation Usage Go to your tsconfig.json and add now restart your TS-server and you should be good to go, ensure you are using the workspace version of TypeScript. In VSCode you can do so by clicking the bottom right when on a TypeScript file or adding a file like this. If you are using VSCode ensure that your editor is using the Workspace Version of TypeScript this can be done by manually selecting it or adding a .vscode/config.json with the contents of Configuration Required - schema allows you to specify a url, .json or .graphql file as your schema. If you need to specify headers for your introspection you can opt into the object notation i.e. { \"schema\": { \"url\": \"x\", \"headers\": { \"Authorization\": \"y\" } }} Optional - template add an additional template to the defaults gql and graphql - templateIsCallExpression this tells our client that you are using graphql('doc') (default: true) when us","default_branch":null,"files":null,"tree":[],"storefront":"/r/0no-co","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/0no-co/GraphQLSP/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}