@@ 31-47 (lines=17) @@ | ||
28 | /** |
|
29 | * @return array |
|
30 | */ |
|
31 | public function fields(): array |
|
32 | { |
|
33 | return [ |
|
34 | 'id' => [ |
|
35 | 'type' => Type::nonNull(Type::id()), |
|
36 | 'description' => 'Tag identifier', |
|
37 | ], |
|
38 | 'name' => [ |
|
39 | 'type' => Type::nonNull(Type::string()), |
|
40 | 'description' => 'Tag name', |
|
41 | ], |
|
42 | 'color' => [ |
|
43 | 'type' => Type::nonNull(Type::string()), |
|
44 | 'description' => 'Tag color', |
|
45 | ], |
|
46 | ]; |
|
47 | } |
|
48 | } |
|
49 |
@@ 78-94 (lines=17) @@ | ||
75 | /** |
|
76 | * @return array |
|
77 | */ |
|
78 | public function queryArguments(): array |
|
79 | { |
|
80 | return [ |
|
81 | '_limit' => [ |
|
82 | 'type' => Type::int(), |
|
83 | 'description' => 'Search results limit', |
|
84 | ], |
|
85 | 'type' => [ |
|
86 | 'type' => Type::nonNull(Type::string()), |
|
87 | 'description' => 'Search category', |
|
88 | ], |
|
89 | 'query' => [ |
|
90 | 'type' => Type::nonNull(Type::string()), |
|
91 | 'description' => 'Search query', |
|
92 | ], |
|
93 | ]; |
|
94 | } |
|
95 | } |
|
96 |