DOKK / manpages / debian 12 / libgraphql-perl / GraphQL::Role::Nullable.3pm.en
GraphQL::Role::Nullable(3pm) User Contributed Perl Documentation GraphQL::Role::Nullable(3pm)

GraphQL::Role::Nullable - GraphQL object role

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

Allows type constraints for nullable objects.

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

2022-03-27 perl v5.34.0