line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package GraphQL::Role::FieldsInput; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
4612
|
use 5.014; |
|
5
|
|
|
|
|
29
|
|
4
|
5
|
|
|
5
|
|
31
|
use strict; |
|
5
|
|
|
|
|
9
|
|
|
5
|
|
|
|
|
123
|
|
5
|
5
|
|
|
5
|
|
26
|
use warnings; |
|
5
|
|
|
|
|
12
|
|
|
5
|
|
|
|
|
170
|
|
6
|
5
|
|
|
5
|
|
29
|
use Moo::Role; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
54
|
|
7
|
5
|
|
|
5
|
|
2653
|
use MooX::Thunking; |
|
5
|
|
|
|
|
7008
|
|
|
5
|
|
|
|
|
37
|
|
8
|
5
|
|
|
5
|
|
712
|
use GraphQL::Type::Library -all; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
50
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
has fields => (is => 'thunked', isa => FieldMapInput, required => 1); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |