-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add support for multiple schemas (#303)
- Loading branch information
1 parent
c4630f6
commit b9b3401
Showing
14 changed files
with
473 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
'@0no-co/graphqlsp': minor | ||
--- | ||
|
||
Add support for defining multiple indepenent schemas through a new config property called `schemas`, you can | ||
pass a config like the following: | ||
|
||
```json | ||
{ | ||
"name": "@0no-co/graphqlsp", | ||
"schemas": [ | ||
{ | ||
"name": "pokemons", | ||
"schema": "./pokemons.graphql", | ||
"tadaOutputLocation": "./pokemons-introspection.d.ts" | ||
}, | ||
{ | ||
"name": "weather", | ||
"schema": "./weather.graphql", | ||
"tadaOutputLocation": "./weather-introspection.d.ts" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
The LSP will depending on what `graphql()` template you use figure out what API you are reaching out to. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.