These are chat archives for reactioncommerce/reaction
Hi, is there any example of a migration or a plugin out there that creates a new Mongo Collection? i see most of the examples extends the schema or clones from it, I would like to create a new Collection, i tried adding the collections to the lib/collections folder and creating the collection and registering the schema with it, also registering the schema itself.
i have done this also in the client folder (much like the dicsount-codes plugin), calling the files in lib and has not worked either.
I have also tried creating a migration and did not show the Collections either.
any advice on how to create new collections?
PS: I’m using Azure cosmos DB to visualize my local mongo, could that be the issue (not refreshing)
Could be the issue of creating empty schemas the reason of why they are not showing up?
i have followed https://docs.reactioncommerce.com/docs/next/simple-schema
do i need to add the schema here?
It says in the guide that all custom plugins that have the lib/collections structure will be taken from the build but it looks like it’s not happening,