GraphQL::Type::InputObject(3pm)

GraphQL::Type::InputObject3pm

Graphql input object type

Usage

  use GraphQL::Type::InputObject;
  my $type = GraphQL::Type::InputObject->new(
    name => 'InputObject',
    fields => { field_name => { type => $scalar_type, resolve => sub { '' } }},
  );

Attributes

Has "name", "description" from GraphQL::Role::Named. Has "fields" from GraphQL::Role::FieldsInput.

Methods

is_valid

True if given Perl hash-ref is a valid value for this type.

uplift

Turn given Perl entity into valid value for this type if possible. Applies default values.

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From libgraphql-perl 0.54-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.