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

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

GraphQL type that is a non-null version of another type

## NAME

GraphQL::Type::NonNull - GraphQL type that is a non-null version of another type

## SYNOPSIS

```
  use GraphQL::Type::NonNull;
  my $type = GraphQL::Type::NonNull->new(of => $other_type);
```

## DESCRIPTION

Type that is a wrapper for another type. Means data cannot be a null value.

## ATTRIBUTES

### of

GraphQL type object of which this is a non-null version.

## METHODS

### BUILD

Moo method that applies the relevant roles.

### to\_string

Part of serialisation.

### is\_valid

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

### name

The `"name"` of the type this object is a non-null version of.
