Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DB *mongo.Client = ConnectDB() ListCollections []string = []string{"planets", "films"} )
Client instance
Functions ¶
func GetCollection ¶
func GetCollection(client *mongo.Client, collectionName string) *mongo.Collection
get database collections
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.