---
name: "GraphQL::Type::InputObject"
section: "3pm"
platform: "linux"
package: "libgraphql-perl"
version: "0.54-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/GraphQL::Type::InputObject"
---

# GraphQL::Type::InputObject(3pm)

GraphQL input object type

## NAME

GraphQL::Type::InputObject - GraphQL input object type

## SYNOPSIS

```
  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.
