You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Company {
id: ID!
}
type Hotel {
id: ID!
}
type Query {
companies: [Company]!
hotels: [Hotel]!
}
output
➜ test_graphql graphql-inspector validate *.graphql ./schema/schema.graphql
Error:
Unable to find any GraphQL type definitions for the following pointers:
- hotels.graphql
at prepareResult (/Users/falazzeh/.config/yarn/global/node_modules/@graphql-tools/load/index.js:561:15)
at loadTypedefs (/Users/falazzeh/.config/yarn/global/node_modules/@graphql-tools/load/index.js:527:12)
at async Object.loadSchema (/Users/falazzeh/.config/yarn/global/node_modules/@graphql-tools/load/index.js:612:21)
I was trying to reproduce your issue and I have a solution for you.
When you did this -> graphql-inspector validate ./client/**/*.graphql ./schema.graphql it might result be -> graphql-inspector validate ./client/foo/1.graphql ./client/foo/2.graphql ./client/bar/1.graphql ./schema.graphql.
Describe the bug
This is the same issue described here: #2001
which was closed however seems to still be broken on latest versions of inspector
Unable to find any GraphQL type definitions for the following pointers
The following errors out when use wildcard.
Although when I copy/paste all the graphql queries/mutations into document.graphql, it never errors out.
To Reproduce
Steps to reproduce the behavior:
First Approach
client/queries/companies.graphql
client/queries/hotels.graphql
schema.graphql
output
Environment:
OS: MacOS Monterey
@graphql-inspector/...: 3.4.0
The text was updated successfully, but these errors were encountered: