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

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

GraphQL object type

## NAME

GraphQL::Type::Object - GraphQL object type

## SYNOPSIS

```
  use GraphQL::Type::Object;
  my $interface_type;
  my $implementing_type = GraphQL::Type::Object->new(
    name => 'Object',
    interfaces => [ $interface_type ],
    fields => { field_name => { type => $scalar_type, resolve => sub { '' } }},
  );
```

## ATTRIBUTES

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

### interfaces

Optional, thunked array-ref of interface type objects implemented.

### is\_type\_of

Optional code-ref. Input is a value, an execution context hash-ref, and resolve-info hash-ref.
