apollo-tooling | ✏️ Tooling for development and production Apollo workflows | GraphQL library
kandi X-RAY | apollo-tooling Summary
kandi X-RAY | apollo-tooling Summary
✏️ Tooling for development and production Apollo workflows
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of apollo-tooling
apollo-tooling Key Features
apollo-tooling Examples and Code Snippets
Community Discussions
Trending Discussions on apollo-tooling
QUESTION
FYI: There are a ton of other posts concerning GraphQL Syntax Error in VS Code. I read many of them, but did not find anything relevant to this. My apologies if I missed it in the similar questions.
Environment:
- VS Code v.1.51.1
- Windows 10 x64 19041
- https://github.com/apollographql/apollo-tooling v.1.17.0
- React Typescript Application
I have a component that uses the useQuery hook. The query is retrieved from another query and comes in via a variable typed as string
In order for the useQuery to correctly use the graphql query, it has first has to be made into a DocumentNode for which I use gql from graphql-tag npm package. The resulting code snippet looks like:
ANSWER
Answered 2020-Dec-13 at 01:33Looks like a known issue with the vscode extension - without a known solution :) https://github.com/graphql/vscode-graphql/issues/137 .
WorkaroundSince gql
is just a function, you can call it directly, so that the extension won't try to parse it and stop complaining.
QUESTION
I am new to apollo and graphql. I tried using both apollo-codegen and graphql-codegen and I want all the types generated in one single file like in graphql-codegen , but in apollo it creates multiple files.
The issue I am having while using graphql-codegen is the type generated is not the format that I get data.
While using apollo client useQuery the data I get from backend is in format of
...ANSWER
Answered 2020-Sep-02 at 12:00You need to add the typescript-operations
plugin to your codegen.yml
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install apollo-tooling
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page