objectdb icon indicating copy to clipboard operation
objectdb copied to clipboard

Managing different "document type"

Open fvisticot opened this issue 6 years ago • 3 comments

I need to manage different kind of documents (event, user, book). How to manage different query based on document type ? Do I need to add an "extra field" in all document type to specify the type of document ?

fvisticot avatar Nov 04 '18 21:11 fvisticot

You should use multiple database files for now, since creating 'collections/tables' isn't possible (yet).

marioreggiori avatar Nov 04 '18 22:11 marioreggiori

We are putting this on the roadmap for v2

flexwie avatar Dec 07 '20 12:12 flexwie

it would be great if it could handle collections like mongodb

await db.collection('collectionName').insert(doc);

I'm having difficulty using this database without this feature.

insinfo avatar Aug 25 '21 20:08 insinfo