ardatan / ardatan/graphql-import
Error: Query root type must be provided #610
- Dominant language
- No language data
- Stars
- 864
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
I'm receiving the error:
```
Error: Query root type must be provided
```
Here is my schema:
schema.graphql
```
schema {
query: ClientQuery
...
}
type ClientQuery {
...
}
```
I am importing it with `graphql-importer`
```
import { importSchema } from 'graphql-import'
const baseTypeDefs = importSchema('../pg-fresh-client/schema/schema.graphql')
```
Shouldn't this be valid?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the shown schema.graphql and the importSchema('../pg-fresh-client/schema/schema.graphql') call; reproduce the reported error using the supplied SDL and inspect the graphql-import parsing entry point. Confirm whether this schema should be accepted and, if it is a bug, add a focused regression test showing the expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100