Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-145898

GraphQL Object relationships are not available until Portal is restarted

Details

    Description

      When a new relationship between objects is created, the relation is not available in GraphQL until the Portal is restarted.

       

      Steps to reproduce:

      1. Create an Object Manager with an ObjectField name and publish it
      2. Create an Object Employee with an ObjectField name and publish it
      3. Add a OneToMany relationship to Employee from the Manager Object
      4. Make a GraphQL query to employees that contains the manager property like 
      {
        c {
          employees {
            items {
              name
              manager
            }
          }
        }
      }

      Expected result: The query is valid and a valid response is returned

      Result: Error response telling the query is invalid. (It will work after restarting the Portal)

      Attachments

        Activity

          People

            kevin.wan Kevin Wan
            javier.dearcos Javier de Arcos Velilla
            Kiyoshi Lee Kiyoshi Lee
            Javier de Arcos Velilla Javier de Arcos Velilla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              34 weeks ago

              Packages

                Version Package
                7.4.3.12 CE GA12
                7.4.13 DXP U8
                Master