How to use with multiple different graphql apis in same file (pluckConfig?)
Open
lsp-server
- Dominant language
- TypeScript
- Stars
- 16.9k
- Forks
- 1.9k
- Avg merge
- 22h 45m
- Merged PRs (30d)
- 70
Description
I am using multiple different graphql APIs which I have registered in my graphql-config file as different named projects.
Using external *.projectX.gql files works quite nicely.
```json
{
"projects": {
"p1": {
"schema": "p1.graphql",
"documents": ["src/**/*.p1.gql"]
},
"hasura": {
"schema": "p2.graphql",
"documents": ["src/**/*.p2.gql"]
}
}
}
```
Is there any way to use the gql tag inside jsx/tsx by specifying a specific project?
Something like:
```javascript
import {gql as gqlP1} from 'graphql-tag';
import {gql as gqlP2} from 'graphql-tag';
const queryProject1 = gqlP1`...`
const queryProject2 = gqlP2`...`
```
Contributor guide
Assessment
This issue has not been assessed yet.