GraphQL/Role/FieldsInput.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« GraphQL/Role/Composite.pm ↑ Summary GraphQL/Role/FieldsOutput.pm »
1 package GraphQL::Role::FieldsInput;
2  
3 5 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 5 ▶use MooX::Thunking;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 5 ▶use GraphQL::Type::Library -all;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 5 our $VERSION = '0.02';
11  
12 =head1 NAME
13  
14 GraphQL::Role::FieldsInput - GraphQL object role implementing input fields
15  
16 =head1 SYNOPSIS
17  
18 with qw(GraphQL::Role::FieldsInput);
19  
20 # or runtime
21 Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::FieldsInput));
22  
23 =head1 DESCRIPTION
24  
25 Implements input fields.
26  
27 =head1 ATTRIBUTES
28  
29 =head2 fields
30  
31 Thunk of hash-ref mapping fields to their types.
32 See L<GraphQL::Type::Library/FieldMapInput>.
33  
34 =cut
35  
36 5 has fields => (is => 'thunked', isa => FieldMapInput, required => 1);
37  
38 5 __PACKAGE__->meta->make_immutable();
39  
40 5 1;
« GraphQL/Role/Composite.pm ↑ Summary GraphQL/Role/FieldsOutput.pm »