diff --git a/src/GraphQL/Execution/FieldContext.php b/src/GraphQL/Execution/FieldContext.php index e2d762da1..16b8f8ab6 100644 --- a/src/GraphQL/Execution/FieldContext.php +++ b/src/GraphQL/Execution/FieldContext.php @@ -31,6 +31,13 @@ public function __construct(ResolveContext $context, ResolveInfo $info) { $this->info = $info; } + /** + * @return string + */ + public function getFieldName() { + return $this->info->fieldName; + } + /** * @return string */