gql added active field to entite paragraph
This commit is contained in:
parent
6026548366
commit
8b514b0dd8
@ -40,6 +40,7 @@ type Entiteintegre {
|
||||
prise: Float
|
||||
id: Int
|
||||
revision_id: Int
|
||||
active: Boolean
|
||||
}
|
||||
|
||||
type Entite implements NodeInterface {
|
||||
|
@ -361,6 +361,14 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||
)
|
||||
);
|
||||
|
||||
// active: Boolean
|
||||
$registry->addFieldResolver('Entiteintegre', 'active',
|
||||
$builder->produce('property_path')
|
||||
->map('type', $builder->fromValue('entity:paragraph'))
|
||||
->map('value', $builder->fromParent())
|
||||
->map('path', $builder->fromValue('field_active.value'))
|
||||
);
|
||||
|
||||
$registry->addFieldResolver('Entiteintegre', 'actuelfuture',
|
||||
$builder->produce('property_path')
|
||||
->map('type', $builder->fromValue('entity:paragraph'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user