Returning list of IDs

This is a basic feature for any database… :face_with_diagonal_mouth:

What is the recommended approach to avoid inserting duplicate data in the database?
As I can’t get the IDs, how would I check if a document already exists in the database?

2 Likes