From 735820bb4c35483cd608eba022e772ba0ffdd4d8 Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 26 Feb 2025 12:39:23 +0100 Subject: [PATCH] gql field name corrections --- .../custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls | 2 +- .../src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls b/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls index 83cec98..d9f8986 100644 --- a/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls +++ b/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls @@ -137,7 +137,7 @@ type Doleance implements NodeInterface { #3 date_decision: Date entites_decisionnaires: String - decision_formule: String + decision_formulee: String mise_en_oeuvre_decision: [MiseEnoeuvreDecision] #4 date_application: Date diff --git a/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php b/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php index 22704e9..46a983a 100644 --- a/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php +++ b/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php @@ -1120,7 +1120,7 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase { ->map('path', $builder->fromValue('field_entites_decisionnaires.value')) ); // decision_formule: String - $registry->addFieldResolver('Doleance', 'decision_formule', + $registry->addFieldResolver('Doleance', 'decision_formulee', $builder->produce('property_path') ->map('type', $builder->fromValue('entity:node')) ->map('value', $builder->fromParent())