Comments (2)
Hi @BoD! How will you provide a schema file in your plugin? Will you follow the same approach as the GraphQL plugin?
from js-graphql-intellij-plugin.
This is to be determined - but I think the most flexible way would probably to have an API that takes a String as an input, so a plugin could programmatically build this String to handle different cases.
To give your more context, in Apollo Kotlin (and other Apollo tools) we have a generic @link
mechanism where a schema can declare to import certain definitions. You can read more about it here. We intend to leverage this mechanism in the future any time we need to add new definitions.
So for instance, in v4 we are adding a new directive @catch
, and for users to use it, they'll have to import it this way:
extend schema @link(
url: "https://specs.apollo.dev/nullability/v0.1",
import: ["@catch", "CatchTo"]
)
When doing this Apollo Kotlin will add the @catch
directive to the user's schema so it can be used in queries.
The ultimate goal for us would be to have support for this mechanism in the plugin. So when @catch
is imported via @link
, then it should be recognized in the editor.
I hope this makes sense :)
from js-graphql-intellij-plugin.
Related Issues (20)
- feature: Automatic copy of fields in interface
- The front end cannot recognize fields and types. Can it provide access to the remote gateway to obtain the scheme and provide code completion and checking functions? HOT 3
- Plugin crashes PyCharm every day
- Failed to evaluate config in TS-based project with ESM imports HOT 3
- Unable to change runtime variable after first time HOT 8
- @octokit/graphql-schema not working HOT 3
- Persist manually provided environment variables between IDE restarts
- Feature Request: add support custom http request headers for individual requests, similar to Apollo Playground HOT 1
- GraphQL Java dependency HOT 1
- PhpStorm gatsby autodiscover error HOT 2
- Glob pattern not working for schema config
- GraphQL intropection: The server introspection response cannot be parsed as a valid JSON object. HOT 2
- Unexpected "Unknown directive location" errors when viewing schema
- Please provide injection for c-style comments without assigning to a variable
- Unknown field "__typename" when viewing graphql documents
- Plugin does not recurse into Magento subdirectories when assembling schema files HOT 3
- Register a schema from a third-party plugin that is only used when specific conditions are met
- [Feature request] Transform subscriptions into queries when executing from plugin
- GraphQL Query result is not formatted 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 js-graphql-intellij-plugin.