examples/src/GraphQL/CreateMemberMutationCreator.php 1 location
|
@@ 28-37 (lines=10) @@
|
25 |
|
return $this->manager->getType('member'); |
26 |
|
} |
27 |
|
|
28 |
|
public function args() |
29 |
|
{ |
30 |
|
return [ |
31 |
|
'FirstName' => ['type' => Type::string()], |
32 |
|
'Surname' => ['type' => Type::string()], |
33 |
|
'Email' => ['type' => Type::nonNull(Type::string())], |
34 |
|
'Password' => ['type' => Type::nonNull(Type::string())], |
35 |
|
'Token' => ['type' => Type::string()] |
36 |
|
]; |
37 |
|
} |
38 |
|
|
39 |
|
public function resolve($object, array $args, $context, ResolveInfo $info) |
40 |
|
{ |
examples/src/GraphQL/MemberTypeCreator.php 1 location
|
@@ 17-27 (lines=11) @@
|
14 |
|
]; |
15 |
|
} |
16 |
|
|
17 |
|
public function fields() |
18 |
|
{ |
19 |
|
return [ |
20 |
|
'ID' => ['type' => Type::int()], |
21 |
|
'FirstName' => ['type' => Type::string()], |
22 |
|
'Surname' => ['type' => Type::string()], |
23 |
|
'Email' => ['type' => Type::string()], |
24 |
|
'Password' => ['type' => Type::nonNull(Type::string())], |
25 |
|
'Token' => ['type' => Type::string()] |
26 |
|
]; |
27 |
|
} |
28 |
|
} |
29 |
|
|
src/Types/MemberTokenTypeCreator.php 1 location
|
@@ 17-26 (lines=10) @@
|
14 |
|
]; |
15 |
|
} |
16 |
|
|
17 |
|
public function fields() |
18 |
|
{ |
19 |
|
return [ |
20 |
|
'ID' => ['type' => Type::int()], |
21 |
|
'FirstName' => ['type' => Type::string()], |
22 |
|
'Surname' => ['type' => Type::string()], |
23 |
|
'Email' => ['type' => Type::string()], |
24 |
|
'Token' => ['type' => Type::string()] |
25 |
|
]; |
26 |
|
} |
27 |
|
} |
28 |
|
|