It's possible to query Shopify resources by metafield value. This is useful if you want to find all products or metaobjects that have a metafield with a specific value. To query by metafield value, first the metafield you want to query by must have [filtering enabled](/docs/apps/build/custom-data/metafields/use-metafield-capabilities#admin-filterable). Filtering can also be enabled in the Shopify admin. Learn more about enabling [filtering for product metafields](https://help.shopify.com/en/manual/custom-data/metafields/filtering-products) and [filtering for metaobject fields](https://help.shopify.com/en/manual/custom-data/options). Available metafield types include: - Single line text or Single line text (list) - Product reference or Product reference (list) - True or false - Collection reference or Collection reference (list) - Page reference or Page reference (list) - Metaobject reference or Metaobject reference (list) - Company reference or Company reference (list) > Note: > Only case-sensitive, exact matches are supported for filtering. ### Querying metaobjects by field value #### Querying metaobjects by taxonomy reference field value

> Note: > This example uses the GID structure for the taxonomy node for the `color` blue. You can find GIDs for taxonomy nodes in the open source [Taxonomy Explorer](https://shopify.github.io/product-taxonomy/releases/latest/). #### Querying metaobjects using a simple single line text field

> Note: > The syntax for querying fields on metaobjects is `fields.{key}:{query_value}`. ### Querying products by field value

> Note: > The syntax for metafields on core resources (such as products) is `metafields.{namespace}.{key}:{query_value}`.