diff --git a/src/Type/Definition/LeafType.php b/src/Type/Definition/LeafType.php index 51d6af2..e813628 100644 --- a/src/Type/Definition/LeafType.php +++ b/src/Type/Definition/LeafType.php @@ -17,7 +17,7 @@ interface LeafType public function serialize($value); /** - * Parses an externally provided value to use as an input + * Parses an externally provided value (query variable) to use as an input * * @param mixed $value * @return mixed @@ -25,9 +25,9 @@ interface LeafType public function parseValue($value); /** - * Parses an externally provided literal value to use as an input + * Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input * - * @param \GraphQL\Language\AST\Value $valueAST + * @param \GraphQL\Language\AST\Node $valueAST * @return mixed */ public function parseLiteral($valueAST); diff --git a/src/Type/Definition/ObjectType.php b/src/Type/Definition/ObjectType.php index 134a248..f40e0b9 100644 --- a/src/Type/Definition/ObjectType.php +++ b/src/Type/Definition/ObjectType.php @@ -99,7 +99,7 @@ class ObjectType extends Type implements OutputType, CompositeType Config::MAYBE_THUNK ), 'isTypeOf' => Config::CALLBACK, // ($value, $context, ResolveInfo $info) => boolean - 'resolveField' => Config::CALLBACK + 'resolveField' => Config::CALLBACK // ($value, $args, $context, ResolveInfo $info) => $fieldValue ]); $this->name = $config['name'];