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
I suspect this is because public $name is not set in the ListOfType. It may be setted in the constructor. I can submit a pull request if it makes sense.
The text was updated successfully, but these errors were encountered:
It is not a bug. ListOf and NonNull are not named types (their name is null). Instead wrapped type is stored in ofType field.
Change your query to:
{
__type(name: "User") {
name
fields {
name
type {
kind
name
ofType {
name
}
}
}
}
}
and you will see what I mean.
If you try graphql-js at http://graphql-swapi.parseapp.com/ and run the same query against any type containing nonNull or listOf field - it will return the same result.
As described in the issue folkloreinc/laravel-graphql#50 the type name is null when using listOf.
Query:
Response:
I suspect this is because
public $name
is not set in the ListOfType. It may be setted in the constructor. I can submit a pull request if it makes sense.The text was updated successfully, but these errors were encountered: