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

# GraphQL::Role::Nullable(3pm)

GraphQL object role

## NAME

GraphQL::Role::Nullable - GraphQL object role

## SYNOPSIS

```
  with qw(GraphQL::Role::Nullable);
  # or runtime
  Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::Nullable));
```

## DESCRIPTION

Allows type constraints for nullable objects.

## METHODS

### non\_null

Returns a wrapped version of the type using GraphQL::Type::NonNull, i.e. that may not be null.
