Add kotlin helper extensions Bson instances

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Java Drivers
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      JAVA-5308 added and support but potentially could extend this support to add infix operators to bson

      Nabil commented in the Filters code review:

      we can create an infix public infix fun  Bson.and(value: Bson?): Bson = Filters.and(this, value) for
      
      (Person::name eq person.name) and Person::age.eq(person.age)
      

      This would be useful and ergonomic, just need to determine what operators to add.

            Assignee:
            Nabil Hachicha
            Reporter:
            Ross Lawley
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: