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

GraphQL throws an error if we query content with a non-existent translation

    XMLWordPrintable

Details

    Description

      Steps to reproduce

      1. Install Ibexa DXP
      2. Add a new language e.g. pol-PL (BO and yaml file)
      3. regenerate graphQL schema
      4. execute query:
        {
          content {
            folder(contentId: 1) {
              name: name(language: pol_PL)
            }
          }
        } 

         

       

      Result

      in dev mode, we get an error

      get_object_vars(): Argument #1 ($object) must be of type object, null given 

      Expected

      The field should be returned as empty 

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.debinski@ibexa.co Mateusz Dębiński
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: