|
@@ -346,7 +346,21 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
|
}
|
|
|
})
|
|
|
));
|
|
|
+
|
|
|
+ $registry->addFieldResolver('Entiteintegre', 'id',
|
|
|
+ $builder->produce('entity_id')
|
|
|
+ ->map('entity', $builder->fromParent())
|
|
|
+ );
|
|
|
|
|
|
+ $registry->addFieldResolver('Entiteintegre', 'revision_id',
|
|
|
+ $builder->compose(
|
|
|
+ $builder->callback(function($parent, $arg){
|
|
|
+ $revid = $parent->getRevisionId();
|
|
|
+ return $revid;
|
|
|
+ })
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
$registry->addFieldResolver('Entiteintegre', 'actuelfuture',
|
|
|
$builder->produce('property_path')
|
|
|
->map('type', $builder->fromValue('entity:paragraph'))
|