1.3.1 • Published 8 months ago

@doomcommerce/shopify-search v1.3.1

Weekly downloads
-
License
AGPLv3
Repository
github
Last release
8 months ago

Shopify Search Query Builder

Create search query strings with helper functions.

Button Installation   Button Usage   Button Examples

npm install @doomcommerce/shopify-search

Showcase

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.

1.3.1

8 months ago

1.3.0

8 months ago

1.2.8

8 months ago

1.2.7

8 months ago

1.2.6

8 months ago

1.2.4

8 months ago

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.2.0

8 months ago

1.1.2

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.0.0

8 months ago