I would like to find records whose ID field match a given value, playlistId, in a specific table I defined as playlistsRecords. In other words, I want to find matches in a field, get their record IDs, and if there are no matches to tell me that there are no matches. I've tried "playlistsRecords.includes(playlistId)" without success and suspect I need to rely something like the following:
base('Playlists').find(playlistId, function(err, record) {
if (err) { console.error(err); return; }
console.log('Retrieved', record.id);
});
Any pointers? Past experience?