How do I apply filter in GraphQL based on metadata fields? | Community
Skip to main content
May 17, 2022
Question

How do I apply filter in GraphQL based on metadata fields?

  • May 17, 2022
  • 1 reply
  • 928 views

We have defined our content fragment model, and are able to run queries based on the fields in the content fragment model. However, we would additionally like to filter based on metadata fields, such as a field of name: title in stringMetadata whose value is Computer.

 

So far we haven't been able to figure out a query that would work, and I am not sure if this is supported. The example queries on adobe site show how to retrieve the metadata, but there is not example on how to actually filter based on those values.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

June 3, 2022

I have been trying to accomplish the same thing without success.

I don't see any way to filter by metadata, which is a huge disappointment if this is not supported. The metadata like title, tags, and other elements from a custom metadata schema is very important.