Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Managing different "document type" #14

Open
fvisticot opened this issue Nov 4, 2018 · 3 comments · Fixed by #53
Open

Managing different "document type" #14

fvisticot opened this issue Nov 4, 2018 · 3 comments · Fixed by #53
Labels
enhancement New feature or request

Comments

@fvisticot
Copy link

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 ?

@marioreggiori
Copy link
Owner

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

@flexwie
Copy link
Contributor

flexwie commented Dec 7, 2020

We are putting this on the roadmap for v2

@flexwie flexwie linked a pull request Dec 10, 2020 that will close this issue
@insinfo
Copy link

insinfo commented Aug 25, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants