GraphQL::Type::InputObject - GraphQL input object type
use GraphQL::Type::InputObject; my $type = GraphQL::Type::InputObject->new( name => 'InputObject', fields => { field_name => { type => $scalar_type, resolve => sub { '' } }}, );
Has name, description from GraphQL::Role::Named. Has fields from GraphQL::Role::FieldsInput.
name
description
fields
Optional array-ref of interface type objects implemented.
True if given Perl hash-ref is a valid value for this type.
Turn given Perl entity into valid value for this type if possible. Applies default values.
To install GraphQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GraphQL
CPAN shell
perl -MCPAN -e shell install GraphQL
For more information on module installation, please visit the detailed CPAN module installation guide.