fix gql query text: Textinterface

This commit is contained in:
2021-03-09 13:04:31 +01:00
parent 91c62174f3
commit e7c7292ffd
2 changed files with 3 additions and 3 deletions
@@ -7,7 +7,7 @@ extend type Query {
}
extend type Query {
text(id: Int!): TextInterface
texte(id: Int!): TextInterface
}
extend type Query {
@@ -143,10 +143,10 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
)
);
$registry->addFieldResolver('Query', 'text',
$registry->addFieldResolver('Query', 'texte',
$builder->produce('entity_load')
->map('type', $builder->fromValue('node'))
->map('id', $builder->fromParent())
->map('id', $builder->fromArgument('id'))
);
}