Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>GraphQL snippetsNew to Visual Studio Code? Get it now.
GraphQL snippets

GraphQL snippets

Chris Noring

|
2,532 installs
| (0) | Free
snippets for graphql
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

graphql-snippets

This is an extension meant to give you some awesome GraphQL snippets alt text

Features

A collection of GraphQL snippets

The following commands are available:

  • graphql-custom-type, Creates an example of custom type
  • graphql-input-type, Creates an example of an input type
  • graphql-query-type, Creates an example of the reserved Query type
  • graphql-mutation-type, Creates an example of the reserved Mutation type
  • graphql-apollo-server-query-resolver, Creates an example of a query resolver for Apollo server
  • graphql-apollo-server-query-parameter-resolver, Creates an example of a query resolver, with a parameter, for Apollo server
  • graphql-apollo-server-mutation-resolver, Creates an example of a mutation resolver, with a parameter, for Apollo server
  • graphql-apollo-client-setup-react, Shows how to setup GraphQL in the client using Apollo Client
  • graphql-apollo-client-query-data, Shows how to query for data in the client and how to render it, using React
  • graphql-apollo-client-mutation, Creates a component that showcases how to run a mutation
  • graphql-apollo-client-polling-data, Creates a component that showcases how to do polling
  • graphql-apollo-client-refetch-data, Creates a component that showcases how to explicitly fetch data

Release Notes

This is the release notes.

0.0.3

Added snippets for mutation, polling and explicitly fetching data

0.0.2

Added client setup and client query, using Apollo

0.0.1

adding some basic snippets to make it usable

Publisher

Chris Noring @chris_noring

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft