A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://shopify.dev/apps/build/custom-data/metafields/query-by-metafield-value below:

Query by metafield value

Query by metafield value

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.

Filtering can also be enabled in the Shopify admin. Learn more about enabling filtering for product metafields and filtering for metaobject fields.

Available metafield types include:

Only case-sensitive, exact matches are supported for filtering.

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.

The syntax for querying fields on metaobjects is fields.{key}:{query_value}.

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4