Giter Site home page Giter Site logo

srinivasankavitha / js-graphql-intellij-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jetbrains/js-graphql-intellij-plugin

0.0 0.0 0.0 32.22 MB

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.

Home Page: https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/

License: MIT License

Java 99.30% HTML 0.04% Lex 0.25% JavaScript 0.38% CSS 0.04%

js-graphql-intellij-plugin's Introduction

GraphQL IntelliJ Plugin

GraphQL language support for WebStorm, IntelliJ IDEA and other IDEs based on the IntelliJ Platform.

Features overview

  • Full language support for the June 2018 GraphQL Specification including the Type System Definition Language (SDL)
  • The plugin discovers your local schema on the fly. Remote schemas are easily fetched using introspection
  • Schema discovery is configured using graphql-config v2 files, including support for multi-schema projects
  • Built-in support for Relay and Apollo projects: graphql and gql tagged template literals in JavaScript and TypeScript are automatically recognized as GraphQL
  • Execute queries using variables against configurable endpoints, including support for custom headers and environment variables
  • Schema-aware completion, error highlighting, and documentation
  • Syntax highlighting, code-formatting, folding, commenter, and brace-matching
  • 'Find Usages' and 'Go to Declaration' for schema types, fields, and fragments
  • 'Structure view' to navigate GraphQL files
  • Load variables from .env files. Supported file names: .env.local,.env.development.local,.env.development,.env.dev.local,.env.dev,.env
  • Built-in Relay and Apollo Federation type definitions

Documentation

The main documentation site is available at https://jimkyndemeyer.github.io/js-graphql-intellij-plugin/

Which IDEs are compatible with the plugin?

The plugin is compatible with version 2020.3+ of all IDEs based on the IntelliJ Platform, including but not limited to WebStorm, IntelliJ IDEA, Android Studio, RubyMine, PhpStorm, and PyCharm.

Where can I get the plugin?

The plugin is published to the JetBrains Plugin Repository.

To install it, open your IDE "Settings", "Plugins", "Marketplace" and search for "GraphQL".

Injections

Tagged template literals

Supported tags are: graphql, gql, Relay.QL, Apollo.gql.

const QUERY = gql``;

IntelliJ default comment-based injection

// language=GraphQL
const QUERY = `query { field }`;

C-style comments

const QUERY = /* GraphQL */ `query { field }`;

GraphQL comments

const QUERY = `
    #graphql
    
    query { field }
`;

Acknowledgements

This plugin was heavily inspired by GraphiQL from Facebook.

A number of language features such as query and schema validation are powered by graphql-java.

A thanks also goes out to the Apollo and Prisma teams for their continued efforts to improve the GraphQL Developer Experience.

And finally, a thank you to the JetBrains WebStorm team and the Alpha/Beta testers for all their help in getting the 2.0 release across the finish line.

License

MIT

js-graphql-intellij-plugin's People

Contributors

arlampin avatar cedrickring avatar denofevil avatar fabex avatar gdalmau avatar jdorleans avatar jimkyndemeyer avatar jimmeyer-els avatar malbanese avatar maraisr avatar mellson avatar nosykretts avatar paulbakker avatar srinivasankavitha avatar vepanimas avatar zvorygin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.