mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-21 20:36:05 +03:00
BUGFIX: Directives args have to be FieldArguments, not FieldDefinitions
This commit is contained in:
parent
b65aa4e657
commit
0262f59a3f
@ -50,7 +50,7 @@ class Directive
|
||||
$args = [];
|
||||
foreach ($config['args'] as $name => $arg) {
|
||||
if (is_array($arg)) {
|
||||
$args[] = FieldDefinition::create($arg + ['name' => $name]);
|
||||
$args[] = new FieldArgument($arg + ['name' => $name]);
|
||||
} else {
|
||||
$args[] = $arg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user