mongo-go-driver-protobuf
mongo-go-driver-protobuf copied to clipboard
Decoding objectId
giving this error: cannot decode objectID into a pmongo.ObjectId
Hi,
I am sorry for the answer delay. Could you please provide me details how I can reproduce error.
Thanks
I got this behavior too, because I did not register your codecs. Adding this solved my issue:
reg := codecs.Register(bson.NewRegistryBuilder()).Build()
clientOptions := options.Client().ApplyURI("mongodb://localhost:27017").SetRegistry(reg)
Same issue here although i registered the codecs