Conditions | 1 |
Paths | 1 |
Total Lines | 37 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function fields(): array |
||
30 | { |
||
31 | return [ |
||
32 | 'id' => [ |
||
33 | 'type' => Type::nonNull(Type::id()), |
||
34 | 'description' => 'Docs identifier', |
||
35 | ], |
||
36 | 'pages' => [ |
||
37 | 'type' => Type::listOf(\GraphQL::type(DocsPageType::getName())), |
||
38 | 'description' => '', |
||
39 | ], |
||
40 | 'title' => [ |
||
41 | 'type' => Type::nonNull(Type::string()), |
||
42 | 'description' => '', |
||
43 | ], |
||
44 | 'image' => [ |
||
45 | 'type' => Type::nonNull(Type::string()), |
||
46 | 'description' => '', |
||
47 | ], |
||
48 | 'version' => [ |
||
49 | 'type' => Type::nonNull(Type::string()), |
||
50 | 'description' => '', |
||
51 | ], |
||
52 | 'description' => [ |
||
53 | 'type' => Type::nonNull(Type::string()), |
||
54 | 'description' => '', |
||
55 | ], |
||
56 | 'created_at' => [ |
||
57 | 'type' => Type::nonNull(Type::string()), |
||
58 | 'description' => '', |
||
59 | ], |
||
60 | 'updated_at' => [ |
||
61 | 'type' => Type::nonNull(Type::string()), |
||
62 | 'description' => '', |
||
63 | ], |
||
64 | ]; |
||
65 | } |
||
66 | } |
||
67 |