Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DoomCommerce/Shopify-Search

Repository files navigation

Badge NPM


Shopify Search
Query Builder

Create search query strings with helper functions.



import { searchify , include , exclude , and } from '@doomcommerce/shopify-search'
const inRange = include({
 orders : {
 from : 1005 ,
 to : 1010
 }
})
const filterBy = exclude({
 channels : [ 'gid://shopify/Channel/183109583163' ] ,
 tags : [ 'Custom Shipping Rate' ]
})
const query = searchify(and(inRange,filterBy))
console.log(query)
( name:>=1005 AND name:<=1010 ) AND ( NOT ( 
sales_channel:'gid://shopify/Channel/183109583163' ) 
AND NOT ( tag:'Custom Shipping Rate' ) )

Resolved search query will be optimized in the future.


About

Shopify search query builder library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

AltStyle によって変換されたページ (->オリジナル) /