Skip to content

Helper methods from mongo-scala-driver don't work inside unchecked #14

Open
edubrovski opened this issue Jul 5, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@edubrovski
Copy link
Contributor

Steps to reproduce the behavior

Compiling this code

import org.mongodb.scala.model.Filters._

val q = query[TestClass](x => x.intField >= 3 && unchecked(lt("intField", 42)))

fails with

Expected the subquery inside 'unchecked(...)' to have 'org.mongodb.scala.bson.BsonDocument' type, but the subquery is 'org.mongodb.scala.model.Filters.lt[scala.Int]("intField", 42)'

@oolong/maintainers

@edubrovski edubrovski added the bug Something isn't working label Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant