GraphQL/Filter/Null.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
type_for
2.0
to_search
2.0
BEGIN
2.0
CRAP 2.0
1 package DBIO::GraphQL::Filter::Null;
2 # ABSTRACT: No-op filter adapter - disables filtering entirely
3 use strict;
4 use warnings;
5  
6 use base 'DBIO::GraphQL::Filter';
7  
8 use GraphQL::Type::InputObject;
9  
10 # A real second adapter for the Filter seam. type_for returns an empty
11 # InputObject (no per-column fields, no AND/OR combinators), and
12 # to_search always returns undef. When this adapter is wired into a
13 # GraphQL schema, filter args are syntactically permitted (a value
14 # of {} or null satisfies the type) but have no effect on the query.
15  
16 sub type_for {
17 my ($self, $moniker) = @_;
18 return GraphQL::Type::InputObject->new(
19 name => "${moniker}Filter",
20 fields => {},
21 );
22 }
23  
24 sub to_search {
25 return undef;
26 }
27  
28 1;
29  
30 __END__
31  
32 =pod
33  
34 =encoding UTF-8
35  
36 =head1 NAME
37  
38 DBIO::GraphQL::Filter::Null - No-op filter adapter - disables filtering entirely
39  
40 =head1 VERSION
41  
42 version 0.900001
43  
44 =head1 AUTHOR
45  
46 DBIO Authors
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 Copyright (C) 2026 DBIO Authors
51  
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54  
55 =cut