added field_menu_burger to static gql queries
This commit is contained in:
@@ -102,6 +102,7 @@ type Static implements NodeInterface {
|
|||||||
texte: String
|
texte: String
|
||||||
notes: [Noteprod]
|
notes: [Noteprod]
|
||||||
fichiers: [File]
|
fichiers: [File]
|
||||||
|
burger: Boolean
|
||||||
poid: Int
|
poid: Int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+7
@@ -845,6 +845,13 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|||||||
->map('field', $builder->fromValue('field_notes'))
|
->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',
|
$registry->addFieldResolver('Static', 'poid',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:node'))
|
->map('type', $builder->fromValue('entity:node'))
|
||||||
|
|||||||
Reference in New Issue
Block a user