lowdb
lowdb copied to clipboard
Push only if there're new data
I need to get data from an api, then save to lowdb but only if there're new data. Is it possible? Thanks in advance
I solved this problem by doing following example
if (db.get('users').find({ key : value }).value() == undefined){
//code
}
Hey @sanket29395 thanks! Really appreciated