Skip to content

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

Description

@edubrovski

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions