-
Notifications
You must be signed in to change notification settings - Fork 173
Labels
Description
Description
Custom scalars and input objects used in directives are not scanned, and subsequently their type cannot be determined when building directives in SchemaParser
Expected behavior
scalar CustomScalar
directive @something(arg: CustomScalar) on FIELD_DEFINITION
type Query {
allProducts: [Product]
}
type Product {
name: String @something(arg: "1")
}
Should parse successfully
Actual behavior
graphql.kickstart.tools.SchemaError: Expected type 'CustomScalar' to be a GraphQLInputType, but it wasn't! Was a type only permitted for object types incorrectly used as an input type, or vice-versa?
enriquedacostacambio, setchy, LucianRadu, condenl, ankurbhakta and 1 more