Skip to content

Commit ca8defb

Browse files
author
Amit
committed
updated readme
1 parent 7662ecc commit ca8defb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,11 @@ func CreateIndex() {
6868
func CreateIndex() {
6969
// For Single Field
7070
indexModel := mongo.IndexModel{
71-
Keys: bson.M{"YOUR_FIELD_NAME": 1},
7271
Options: options.Index().SetUnique(true),
72+
Keys: bson.D{
73+
{Key: "YOUR_FIELD_NAME", Value: 1},
74+
{Key: "YOUR_FIELD_NAME", Value: 1},
75+
},
7376
}
7477

7578
// For Multiple Fields

publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22

33
echo "[ ✅ ] Updating Package Version"
4-
GOPROXY=proxy.golang.org go list -m github.com/amitjangid80/go-mongodb-client@v1.1.4
4+
GOPROXY=proxy.golang.org go list -m github.com/amitjangid80/go-mongodb-client@v1.1.5

0 commit comments

Comments
 (0)