Fix broken filtering through discriminator
This commit is contained in:
6
main.go
6
main.go
@@ -232,6 +232,7 @@ type MongoStartProps struct {
|
||||
MongoPass string
|
||||
MongoDebugQuery bool
|
||||
MongoDBPrefix string
|
||||
AllowTruncatingDoubles bool
|
||||
}
|
||||
|
||||
func Start(props *MongoStartProps) error {
|
||||
@@ -262,7 +263,10 @@ func Start(props *MongoStartProps) error {
|
||||
NilSliceAsEmpty: true,
|
||||
NilMapAsEmpty: true,
|
||||
}).
|
||||
SetRegistry(GetCustomRegistry())
|
||||
SetRegistry(GetCustomRegistry()).
|
||||
SetBSONOptions(&options.BSONOptions{
|
||||
AllowTruncatingDoubles: props.AllowTruncatingDoubles,
|
||||
})
|
||||
|
||||
client.DebugQuery = props.MongoDebugQuery
|
||||
if client.DebugQuery {
|
||||
|
||||
Reference in New Issue
Block a user