storefront-query-builder
ElasticSearch Query builder from the abstract "SearchQuery" object used by storefront-api
, vue-storefront-api
and vue-storefront
projects.
The idea is, that the user can create the query in a pretty abstract way and get the ElasticSearch
or potentially different query in return. Some nice extension ideas could be to add mongodb
support or SQL
support as well.
Example usage:
const searchQuery = searchQuery = searchQueryconst elasticSearchQuery = await elasticsearch// send the `elasticSearchQuery` to ElasticSearch instance
More on storefront-api
More on vue-storefront