Skip to content

Allow items to determine their collection#45

Open
patrick-yi-82 wants to merge 4 commits intosebdah:masterfrom
oitmain-public:collection_per_item
Open

Allow items to determine their collection#45
patrick-yi-82 wants to merge 4 commits intosebdah:masterfrom
oitmain-public:collection_per_item

Conversation

@patrick-yi-82
Copy link
Copy Markdown

Example :
Set configuration

MONGODB_COLLECTION = 'my_items'
MONGODB_ITEM_COLLECTION="item_collection"

Item 1 : This item will go to the default collection my_items
{ "name":"John", "age":30}

Item 2 : This item will go to the collection teenager
{ "name":"Jane", "age":18, "item_collection": "teenager"}

@steve-bate
Copy link
Copy Markdown

👍 Why wasn't this ever merged?

@sebdah
Copy link
Copy Markdown
Owner

sebdah commented Nov 13, 2020

@steve-bate Not sure tbh. If you'd like to code review it I'll merge and ship it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants