Prerequisites
Describe the bug
At the time of schema validation, whenever there is a type that's not defined in the schema/config, tailcall server should bailout and display and error message with a proper trace.
Steps to reproduce
Use the following graphql config
schema @schema {
query: Query
}
type Query {
users: [User] @http(baseURL: "https://jsonplaceholder.typicode.com", path: "/users")
}
Perform a check command
tc check ./assets/jsonplaceholder.graphql
No errors found
N + 1: 0
Expected behavior
Actual behavior
- No validation error is thrown
- Server start panics and fails.
Environment information:
Prerequisites
Describe the bug
At the time of schema validation, whenever there is a type that's not defined in the schema/config, tailcall server should bailout and display and error message with a proper trace.
Steps to reproduce
Use the following graphql config
Perform a check command
Expected behavior
tc startshould not panicActual behavior
Environment information: