Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Using an invalid type in a schema extension schema results in internal server error #413

Closed
schickling opened this issue Sep 8, 2017 · 1 comment
Milestone

Comments

@schickling
Copy link
Member

Issue by marktani
Monday Jul 24, 2017 at 09:14 GMT
Originally opened as https://github.com/graphcool/api-bugs/issues/199


What is the current behavior?

Using an invalid type in a schema extension schema results in internal server error.

Please share the relevant part of your GraphQL schema and all functions, permissions or other project settings for easier reproduction

Create a new schema extension function with this schema:

type MyPayload {
  params: String
}

extend type Query {
  myQuery(
     fakeField: [[Float]]
 ): MyPayload
}

The function cannot be saved, because of the invalid type [[Float]].

What is the expected behavior?

A useful error message is returned.

@marktani
Copy link
Contributor

That should be fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants