Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-3059

GraphQL - unable to access matrix field value

    XMLWordPrintable

Details

    • Ibexa Commerce, Ibexa Content, Ibexa Experience

    Description

      Clean Ibexa Experience v4.1.5 (APP_ENV=dev)

      Steps to reproduce:

      • add ezmatrix field to folder Content Type ( identifier: matrix )
      • add one column to matrix field definition ( identifier: foo )
      • regenerate GraphQL schema php bin/console ibexa:graphql:generate-schema 

      Send request to GraphQL (https://[host]/graphiql)

      {
        content {
          folder(contentId: 1) {
            matrix {
              foo
            }
          }
        }
      }
      

      Result:

      {
        "errors": [
          {
            "debugMessage": "Argument 1 passed to Ibexa\\FieldTypeMatrix\\GraphQL\\FieldValueResolver::resolveMatrixFieldValue() must be an instance of Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content, instance of Ibexa\\GraphQL\\Value\\Item given, called in /var/www/html/support/lionel-test/vendor/overblog/graphql-bundle/src/Resolver/AbstractProxyResolver.php on line 36",
            "message": "Internal server Error",
      

      Note:
      Similar request works on v3.3.21 as it is - so this ticket applies to >=v4.1 only

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              thorsten.reiter@ibexa.co Thorsten Reiter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: