added field_menu_burger to static gql queries
This commit is contained in:
@@ -102,6 +102,7 @@ type Static implements NodeInterface {
|
||||
texte: String
|
||||
notes: [Noteprod]
|
||||
fichiers: [File]
|
||||
burger: Boolean
|
||||
poid: Int
|
||||
}
|
||||
|
||||
|
||||
+7
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user