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

GraphQL::Role::Leaf - GraphQL "leaf" object role

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

Allows type constraints for leaf objects.

2022-03-27 perl v5.34.0