Uploaded image for project: 'Magnolia GraphQL'
  1. Magnolia GraphQL
  2. MGNLGQL-99

Multivalues cannot be retrieved due to wrongly configured jcr multivalue data fetcher

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0.2
    • 1.0.1
    • HL & LD 39
    • 1

    Description

      Steps to reproduce:

      1. clone git clone https://git.magnolia-cms.com/scm/documentation/bookcase.git
      2. modify the author.yaml content type.  Add
         - name: alias
           multiple: true
      3. Which creates:

        Then, an attempt to get:
      {
        book(id: "c234e8ed-33e3-4265-aeae-3eefc09debc3") {
          title
          authors {
            name
            isni
            alias
          }
        }
      }
      

      Returns:

      {
        "status": 500,
        "errors": [
          {
            "message": "Exception while fetching data (/alias): property /My-Good-Authors/H.-G.-Wells/alias is a multi-valued property, so it's values can only be retrieved as an array",
            "locations": [
              {
                "line": 7,
                "column": 7,
                "sourceName": null
              }
            ],
            "errorType": "DataFetchingException",
            "path": [
              "book",
              "authors",
              0,
              "alias"
            ],
            "extensions": null
          }
        ]
      }

      {}

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsarf Jaromir Sarf
                mdrapela Martin Drápela
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 0.75d
                      0.75d