objectdb
objectdb copied to clipboard
Managing different "document type"
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 ?
You should use multiple database files for now, since creating 'collections/tables' isn't possible (yet).
We are putting this on the roadmap for v2
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.