Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
None
-
Atlas:M0 Sandbox, ver 4.0.10
OS: Ubuntu 18.04 on AWS EC2
Golang: 1.12.7
DNS server:8.8.8.8
Description
The code snippet below didn't work
ClientOpt := options.Client().ApplyURI("some address") |
Client,err := mongo.Connect(context.TODO(),ClientOpt)
|
if err!=nil { |
panic(err)
|
}
|
collection:=Client.Database("something").Collection("another") |
Obj1 := SomeObj{}
|
res,error:=collection.InsertOne(context.TODO(),Obj1)
|
if error!=nil { |
panic(error)
|
}
|
