Comments (24)
Can some one make a graphql package for lovely sublime text? 😄
from graphql-spec.
@abdulhannanali I just released a GraphQL package for Sublime Text.
https://packagecontrol.io/packages/GraphQL
Right now is just a syntax highlighter, but we plan to add autocompletion and almost all the capabilities we have with GraphiQL.
Source code: https://github.com/graphql-python/GraphQL-SublimeText
from graphql-spec.
I started on a Vim plugin: https://github.com/jparise/vim-graphql
It still needs work but handles file detection, syntax highlighting, and folding pretty well so far.
from graphql-spec.
🎬 take 1 for Atom https://atom.io/packages/language-graphql
syntax only, looking forward to trying autocomplete :)
from graphql-spec.
@jimkyndemeyer Awesome work! Your plugin changed my life in Javascript. Wondering though, do you think it would be hard work to make it also autocomplete queries in PHP Heredoc ?
Example:
private function getQuery()
{
$query = <<<'GQL'
query ProgrammesForHome($region: String, $travelStart: DateTime, $page: Int, $limit: Int) {
programmes(region: $region, page: $page, limit: $limit) {
total
page
limit
edges {
node {
id
name
catchPhrase
price {
amount
currency {
code
}
}
offers {
id
}
}
}
}
}
GQL;
return $query;
}
from graphql-spec.
Autocomplete and lint from a GraphQL endpoint in atom.
https://github.com/nicolaslopezj/atom-graphql-autocomplete
from graphql-spec.
@nicolaslopezj - that looks cool :D I've been working to provide a language service interface for GraphQL that could be used across common IDEs. It'll also support firing up the GraphQL server to cache schema/fragment definitions/etc to be used for validation/autocomplete suggestions. The interface has methods to bring other common IDE features, such as hyperlink/outline views/and etc.
It's been developed and tested with Nuclide, but I thought this could be useful for Atom users as well - it'd be awesome if we can collaborate on making that happen!
from graphql-spec.
Could be awesome to see a plugin for PHPStorm !
from graphql-spec.
Since I guess lots of people are using GraphGL for Android projects, is it a good idea to make an IntelliJ plugin?
from graphql-spec.
I've created a GraphQL plugin for IntelliJ IDEA and WebStorm that relies on the JavaScript reference implementation. It provides roughly the same features as Graph_i_QL, including schema-aware completion, error highlighting, and in-editor schema documentation:
https://github.com/jimkyndemeyer/js-graphql-intellij-plugin
The integration between the Java-based plugin and the reference implementation JavaScript parser is available as a Node.js based language service:
https://github.com/jimkyndemeyer/js-graphql-language-service
It might prove useful for enabling GraphQL language features in other IDEs, much like the TypeScript language service did for Sublime and Atom.
from graphql-spec.
A port of @jimkyndemeyer's GraphQL plugin for IntelliJ IDEA to work with Python files in the JetBrains IDE would be amazing as well.
Currently, the Python client toolset is very lacking, and that is a pain that will interfere with GraphQL's growth.
from graphql-spec.
IntelliJ would be great
from graphql-spec.
On my way
from graphql-spec.
I finished a basic version:
https://github.com/Gregoor/graphql-intellij-plugin
@leebyron: Is it possible that the spec is a bit incomplete in respect to type definitions starting with 'input'? But the grammar at the end was extremly helpful, thanks for that!
from graphql-spec.
Looks like @devknoll is on it.
https://twitter.com/devknoll/status/666469020976066560
https://twitter.com/devknoll/status/666476905739108352
from graphql-spec.
Awesome, that looks way better than what I did :) I'll try it, as soon as it is approved. Any idea how I can help the ~100 downloaders of my plugin migrate to your plugin?
Edit: I think I'll just put up a notification.
from graphql-spec.
@Gregoor A notification should do the trick :) How long did it take to get your plugin approved?
In case you want early access to the plugin, it can be downloaded from https://dl.dropboxusercontent.com/u/12996502/js-graphql-intellij-plugin/1.0.0/js-graphql-intellij-plugin.jar
Just add it using "Install plugin from disk..."
from graphql-spec.
I think the approval process is bound to their 9-5 work cycle (in the czech republic). At least that's the feeling I got.
Thanks for the direct link.
from graphql-spec.
@nicolaslopezj That's great news. Would you consider using https://github.com/graphcool/graphql-config#method-2-configuration-via-graphqlrc-file to configure the endpoint?
from graphql-spec.
Yes I will!
from graphql-spec.
For @abdulhannanali and anyone else sad about the Sublime Text highlighter not working, I just released one that does. https://packagecontrol.io/packages/GraphQL
from graphql-spec.
@dncrews Thanks a lot @dncrews will surely help people using Sublime but I have long moved to Visual Studio Code ❤️
from graphql-spec.
Derailing this thread a bit because these are not IDEs but since we're talking syntax highlighting, some highlighting libraries as of 21 March 2017:
- Prism (JS) does support GraphQL
- Highlight.js (JS) does not support GraphQL
- Linguist (Ruby) does support GraphQL
- Pygments (Python) does not support GraphQL (but one might look into this)
Let me know if you are aware of other ones.
from graphql-spec.
Closing this generic issue since we now have pretty good coverage across many IDEs. Please open future language service issues on specific IDEs!
from graphql-spec.
Related Issues (20)
- GraphQL Mutation how to make fields optional to update fields only by selection and generate schema HOT 1
- [RFC] Non-existent request field operator HOT 8
- (Graphql-schema) Cannot query field "closeDiscussion" on type "Mutation" HOT 1
- GraphQL spec is contradictory: can selection sets be empty or not? HOT 1
- Allow to return Input Object types HOT 1
- Formalize Global Object Identification.
- Grammar should have single root node HOT 2
- [Feature request]: Support non-list variables for list arguments HOT 9
- Redundant field aliases identical to field names
- Document Level Directives HOT 7
- Coercing Variable Values when hasValue is not true and defaultValue does NOT exist HOT 7
- Strawman: mention of non-self-describing responses
- why not allow directive on field argument ? HOT 2
- On specifying ordered vs unordered enum definitions HOT 5
- Casting Error in GraphQL C# Library HOT 2
- Is there a reason graphql floats do not support Infinity and NaN? HOT 3
- Composite types is not clearly defined HOT 1
- Unclear spec for array with fragments HOT 1
- What must be the result of executing only one fragment on a list of union or interface type? HOT 3
- Interface conditions fragments may not be used across spreads, discouraging reusability HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-spec.