|
@@ -585,6 +585,14 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
)
|
|
)
|
|
);
|
|
);
|
|
|
|
|
|
|
|
+ $registry->addFieldResolver('Besoin', 'author',
|
|
|
|
+ $builder->compose(
|
|
|
|
+ $builder->produce('entity_owner')
|
|
|
|
+ ->map('entity', $builder->fromParent()),
|
|
|
|
+ $builder->produce('entity_label')
|
|
|
|
+ ->map('entity', $builder->fromParent())
|
|
|
|
+ ));
|
|
|
|
+
|
|
// description: String!
|
|
// description: String!
|
|
$registry->addFieldResolver('Besoin', 'description',
|
|
$registry->addFieldResolver('Besoin', 'description',
|
|
$builder->produce('property_path')
|
|
$builder->produce('property_path')
|
|
@@ -680,6 +688,15 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
|
->map('url', $builder->fromParent())
|
|
->map('url', $builder->fromParent())
|
|
)
|
|
)
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+ $registry->addFieldResolver('Reponse', 'author',
|
|
|
|
+ $builder->compose(
|
|
|
|
+ $builder->produce('entity_owner')
|
|
|
|
+ ->map('entity', $builder->fromParent()),
|
|
|
|
+ $builder->produce('entity_label')
|
|
|
|
+ ->map('entity', $builder->fromParent())
|
|
|
|
+ ));
|
|
|
|
+
|
|
// besoin: Besoin
|
|
// besoin: Besoin
|
|
$registry->addFieldResolver('Reponse', 'besoin',
|
|
$registry->addFieldResolver('Reponse', 'besoin',
|
|
$builder->compose(
|
|
$builder->compose(
|