bach 3 лет назад
Родитель
Сommit
ef9fec7582

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+\.vscode/*

+ 1 - 1
.vscode/launch.json

@@ -11,7 +11,7 @@
             "serverSourceRoot":"192.168.0.21"
             "port": 9001,
             "pathMappings": {
-                "/var/www/html/d8.materio.com/public_html": "${workspaceFolder}"
+                "/var/www/html/api/src": "${workspaceFolder}"
             },
         },
         {

+ 2 - 2
src/web/modules/custom/enfrancais_graphql/src/Plugin/GraphQL/SchemaExtension/EnFrSchemaExtension.php

@@ -383,7 +383,7 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
         ->map('type', $builder->fromValue('entity:node'))
         ->map('value', $builder->fromParent())
         ->map('path', $builder->fromValue('field_degres_detrangement.value'))
-      );
+    );
 
     $registry->addFieldResolver('Textref', 'field_titre_regular',
       $builder->produce('property_path')
@@ -525,7 +525,7 @@ class EnFrSchemaExtension extends SdlSchemaExtensionPluginBase {
         ->map('path', $builder->fromValue('field_video'))
       );
 
-    $registry->addFieldResolver('Textprod', 'tags',
+    $registry->addFieldResolver('Textprod', 'tagsprod',
       $builder->produce('entity_reference')
         ->map('entity', $builder->fromParent())
         ->map('field', $builder->fromValue('field_tag_prod'))