-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Look into leveraging graphql-config
#151
Comments
This would then also enable to use something like an environment variable if authentication is needed to retrieve the schema? See: 0no-co/gql.tada#54 |
@palmamartin I'm not sure what your use-case here is, so it might be useful for you to open a discussion with more details 🤔 Basically, a CLI can of course support environment variables, however, the LSP is loaded by the If we mean The CLI, planned in |
@kitten Sorry If I wasn't clear. What I really want to achieve is to solve the problem from this discussion and thought maybe using something like What I find cool about |
Is the
I think it's safe to say that in production the introspection should be disabled, but in my case, like I mentioned, I'm using a staging backend that has introspection enabled for this very reason and I don't see anything wrong with that. In cases like that, the ability to automatically introspect and fetch the schema is very convenient. I'd also argue that if you know you can't introspect the schema and you need another way to do that is a different problem. I'm not even sure if supporting
|
@paolostyle: Just to point this out, since I've just seen this by chance. We explicitly don't recommend mixing non- Having another editor plugin (e.g. what's built into Webstorm/Jetbrains, or the VSCode GraphiQL plugin) provide another layer of diagnostics kind of defeats the point of GraphQLSP and also falls over for projects that wish to use the upcoming Multi-Schema tooling. It's technically still possible to use So, just to point this out, tl;dr: for |
It would be easier if all of the GraphQL tools leveraged a centralised config for i.e. retrieving the schema, ... building out support in the LSP would be great for that.
https://the-guild.dev/graphql/config/docs/user/schema
The text was updated successfully, but these errors were encountered: