added field_menu_burger to static gql queries

This commit is contained in:
2021-09-21 21:36:59 +02:00
parent 162ff36cff
commit 67c9f1f46b
2 changed files with 8 additions and 0 deletions
@@ -102,6 +102,7 @@ type Static implements NodeInterface {
texte: String
notes: [Noteprod]
fichiers: [File]
burger: Boolean
poid: Int
}
@@ -845,6 +845,13 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
->map('field', $builder->fromValue('field_notes'))
);
$registry->addFieldResolver('Static', 'burger',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))
->map('value', $builder->fromParent())
->map('path', $builder->fromValue('field_menu_burger.value'))
);
$registry->addFieldResolver('Static', 'poid',
$builder->produce('property_path')
->map('type', $builder->fromValue('entity:node'))