We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7662ecc commit ca8defbCopy full SHA for ca8defb
Readme.md
@@ -68,8 +68,11 @@ func CreateIndex() {
68
func CreateIndex() {
69
// For Single Field
70
indexModel := mongo.IndexModel{
71
- Keys: bson.M{"YOUR_FIELD_NAME": 1},
72
Options: options.Index().SetUnique(true),
+ Keys: bson.D{
73
+ {Key: "YOUR_FIELD_NAME", Value: 1},
74
75
+ },
76
}
77
78
// For Multiple Fields
publish.sh
@@ -1,4 +1,4 @@
1
#!/bin/sh
2
3
echo "[ ✅ ] Updating Package Version"
4
-GOPROXY=proxy.golang.org go list -m github.com/amitjangid80/go-mongodb-client@v1.1.4
+GOPROXY=proxy.golang.org go list -m github.com/amitjangid80/go-mongodb-client@v1.1.5
0 commit comments