Meteor-Mongo interface

The Meteor server is connecting to the specific MongoDB collection here: https://github.com/focallocal/fl-maps/blob/deploy-phm/imports/both/collections/events/index.js.

The collection is first instantiated using: const Events = new Mongo.Collection('events')

After that, the schema is attached to the instantiation of the events: Events.attachSchema(EventsSchema)

1 Like