Created
September 10, 2018 08:27
-
-
Save to175/69e2fc3b647c7408d18a43d1fdb37964 to your computer and use it in GitHub Desktop.
Code to call find
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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