Filter and sort

Query Language

Endpoints that allow querying follow these format guidelines.

Query Products

Fields That Allow Filtering

FieldOperatorsSorting Allowed
name$eq,$ne,$hasSome,$contains,$startsWithAllowed
description$eq,$ne,$hasSome,$contains,$startsWith
sku$eq,$ne,$hasSome,$contains,$startsWithAllowed
id$eq,$ne,$hasSomeAllowed
price$eq,$ne,$hasSome,$lt,$lte,$gt,$gteAllowed
numericId$eq,$ne,$hasSome,$lt,$lte,$gt,$gteAllowed
productType$eq,$ne,$hasSomeAllowed
slug$eq,$ne,$hasSome,$contains,$startsWithAllowed
collections.id$eq,$ne,$hasSome,$hasAll
options.<option name>$eq,$ne,$hasSome,$hasAll
inventoryStatus$eq,$ne,$hasSome
lastUpdated$eq,$ne,$hasSome,$lt,$lte,$gt,$gteAllowed
createdDate$eq,$ne,$hasSome,$lt,$lte,$gt,$gteAllowed

** Note that "HasSome" is same as the operator "IN" in SQL

Examples

Query products where price = 10

Copy
1

Query products, order by price descending

Copy
1

Getting all products for a given collection

Copy
1

Getting multiple products by IDs

Copy
1

Getting all products with a specific choice

Copy
1

Getting all products in a store

  1. Get the first page:
Copy
1
  1. Take the numericId of the last returned item and run the following query:
Copy
1
  1. Continue until no more records are returned.

Query Collections

Fields That Allow Filtering

FieldOperatorsSorting Allowed
name$eq,$ne,$hasSome,$contains,$startsWithAllowed
id$eq,$ne,$hasSome,$contains,$startsWithAllowed

** Note that "HasSome" is same as the operator "IN" in SQL

Examples

Query collections where name = my collection

Copy
1
Was this helpful?
Yes
No