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

Filtering by metadata does not work after Magnolia start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None

    Description

      Steps to reproduce

      • Open GraphQL app
      • Execute query
        {
          tours(limit:100 filter: "@_metadata.createdBy = 'superuser'") {
            name
            description
            _metadata {
              createdBy
            }
          }
        }

        Expected results

        Results filtered by createdBy

        Actual results

        Error response

        Workaround

        Edit content type to refresh GraphQL schema

        Development notes

        It looks like that when some of the types are built, the JcrMetadata is not yet present in the GraphQL registry and info.magnolia.graphql.jcr.contenttype.mapper.JcrContentTypeModelMapper#findAvailableJcrMetadata returns empty map.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jsimak Jaroslav Simak
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD