import ( "github.com/mongolar/mongolar" "github.com/mongolar/mongolar/wrapper" ) db := mongolar.Connect("mongodb://localhost:27017/database") collection := db.Collection("users") // Example 1: Set the payload for an InsertOne operation insertPayload := bson.M{"name": "John", "age": 30} insertWrapper := wrapper.SetPayload(insertPayload) result, err := collection.InsertOne(insertWrapper.Context(), insertWrapper.Payload()) if err != nil { log.Fatal(err) } // Example 2: Set the payload for a FindOne operation filter := bson.M{"name": "John"} findWrapper := wrapper.SetPayload(filter) var user User err := collection.FindOne(findWrapper.Context(), findWrapper.Payload()).Decode(&user) if err != nil { log.Fatal(err) }In the first example, the SetPayload function is used to set the payload for an InsertOne operation, which inserts a document into the database. In the second example, the SetPayload function is used to set the payload for a FindOne operation, which retrieves a document from the database. Overall, the go github.com.mongolar.mongolar.wrapper package library provides a useful wrapper for MongoDB operations, which can simplify your code and make it easier to work with MongoDB.