Skip to content

v0.2.4

Compare
Choose a tag to compare
@anttiai anttiai released this 11 Feb 14:16
· 243 commits to master since this release

New functions to query custom field autocompletion and define the number of results to fetch.

client.setAutocompleteSize(20);
client.autocomplete('custom_fields.brand', 'a', callback); // "adidas, apple, azure"

New function to use a filtering object with complex setup.

var filter = {
  'and':[
     {'custom_fields.brand': 'apple'},
     {'not': {'custom_fields.color': 'white'}},
     {'range': {'custom_fields.price': {'gt': 200, 'lt':500}}}
   ]
};

client.setFilterObject(filter);