import { filter, and, or, eq, gte, lte, inValues } from '@commerce-blocks/sdk'
const collection = sdk.collection({ collectionHandle: 'shirts' })
await collection.get({
filterGroup: filter(and(
eq('your-attribute', 'your-value'),
eq('your-second-attribute', 'your-second-value'),
)),
})
// Numeric range
await collection.get({
filterGroup: filter(and(
gte('your-numeric-attribute', 50),
lte('your-numeric-attribute', 200),
)),
})
// Multiple values on the same attribute
await collection.get({
filterGroup: filter(inValues('your-attribute', ['your-value', 'your-second-value'])),
})