Browse Source

some comments on materio_graphql

bach 3 years ago
parent
commit
aab0c6a3e5

+ 4 - 1
web/modules/custom/materio_graphql/src/Plugin/GraphQL/SchemaExtension/MaterioSchemaExtension.php

@@ -487,9 +487,12 @@ class MaterioSchemaExtension extends SdlSchemaExtensionPluginBase {
       // $builder->produce('entity_reference')
       //   ->map('entity', $builder->fromParent())
       //   ->map('field', $builder->fromValue('field_linked_materials'))
-      //   ->map('language', $builder->fromValue('fr')) // this is not working
+      //   // ->map('language', $builder->fromValue('fr')) // this is not working
       //   // ->map('language', $builder->produce('entity_language')
       //     // ->map('entity', $builder->fromParent())) // neither that
+
+      // THIS USED TO WORK but not anymore :(
+      // invalid language translation (fr) provided
       $builder->compose(
         $builder->callback(function($parent, $args){
           $linkedmaterials = $parent->get('field_linked_materials')->getValue();