inputTypes
Contents
Add custom GraphQL input types.
Usage
It must be an object with the following structure:
inputTypes: {
<InputTypeName>: {
description: <description>
fields: {
<fieldName>: <graphQLType>,
// the rest of fields ...
},
},
// the rest of input type definitions ...
}
For example:
inputTypes: {
CustomFilterInput: {
description: "Custom Filter Input",
fields: {
exact: graphQL.GraphQLString,
startsWith: graphQL.GraphQLString,
endsWith: graphQL.GraphQLString,
contains: graphQL.GraphQLString
}
}
}