Created new schema not shown in mongo


#1
  1. i have registered a new schema name TestSchema via SimpleSchema
  2. getSchemas() displays TestSchema via Logger.info
  3. but TestSchema not present in mongo via robo3t (robomongo)
    do anyone know why

#2

Creating a Schema does not create a collection. You need to do that using the Mongo API, something like this:
export const ProductSearch = new Mongo.Collection("ProductSearch");. Then Schemas can be attached to a collection. Once the collection is used, the collection will be created in Mongo.