Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-32435

Field is always null when a ezobjectrelationlist has a relation to a FileContent

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 3.2.8
    • Platform > GraphQL
    • None
    • eZ Platform

    Description

      Field is always null when a ezobjectrelationlist has a relation to a FileContent.

      Reproduce:

      1. Add to a Content with a ezobjectrelationlist one or more File(s)
      2. Send GraphQL Query to fetch the Files

      Example Request:

      query RYourContent($id: Int) {
        _repository {
          location(locationId: $id) {
            content {
              __typename
              ... on YourContent {
                someRelationList {
                  __typename
                  ... on FileContent {
                    id
                  }
                }
              }
            }
          }
        }
      }
      

      Actual Behavior:

      Response:

      {
        "data": {
          "_repository": {
            "location": {
              "content": {
                "__typename": "YourContent",
                "someRelationList": [
                  null,
                  null
                ]
              }
            }
          }
        }
      }
      

      Expected:

      List of someRelationList should have a __typename and id

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            0fd87391-27d1-45ad-a4a2-5947496ce77a@ibexaaccounts.onmicrosoft.com Salih Candir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: