Skip to content

Instantly share code, notes, and snippets.

@to175
Created September 10, 2018 08:27
Show Gist options
  • Save to175/69e2fc3b647c7408d18a43d1fdb37964 to your computer and use it in GitHub Desktop.
Save to175/69e2fc3b647c7408d18a43d1fdb37964 to your computer and use it in GitHub Desktop.
Code to call find
export const getCarModelsByViPart = async (viPartToFind) => {
try {
return await local_database_models.find({
selector: {vi_part: vinPartToFind}
});
}
catch (err) {
return err;
}
}
getCarModelsByViPart("PX").then(function(t){
console.error(t);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment