-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Support more than one distinct schema in one repository #278
Comments
@JoviDeCroock I looked at that issue and I believe we're looking for two different things. I want to be able to differentiate between two entirely separate APIs. I don't want the types from all of the schemas to be concatenated into each other. Unless I've misunderstood issue #264, the solution proposed wouldn't have a way to differentiate between the two schemas when writing a query. |
Hmm, in that case I misunderstood in that case we might be missing some information here. Are you seeing both |
Yes, both I tried with two different template tags and the results were the same. Side note: sorry to have missed discussion #223, that is a true duplicate of this request. Let's continue the discussion there, if you'd like. |
Your case should work but not when your templates overlap with the default https://github.com/0no-co/GraphQLSP/blob/main/packages/graphqlsp/src/ast/templates.ts |
Hmm, just tried with two different templates, neither of which being |
I have two APIs I'd like to make requests to with gql.tada.
I'd love to see graphqlsp support reading from multiple schema files.
It's totally fine IMO to use a different "template" for each if that helps the LSP differentiate between the two schemas.
Example of what I'd like to put in my tsconfig.json file:
The text was updated successfully, but these errors were encountered: