Socket
Socket
Sign inDemoInstall

@doomcommerce/shopify-search

Package Overview
Dependencies
1
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @doomcommerce/shopify-search

Shopify search query builder


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.


Keywords

FAQs

Last updated on 03 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc