- 
                Notifications
    
You must be signed in to change notification settings  - Fork 1.5k
 
Test expressions in context #1057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was reading docs match(expr(new Document("$and", seems that we might add a version of expr such that the above would become:
Filters.expr(d -> d.getInteger("x").eq(of(1))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am imagining that this could be something for the future.
        
          
                driver-core/src/main/com/mongodb/client/model/expressions/Expressions.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                driver-core/src/main/com/mongodb/client/model/expressions/Expressions.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      d89bcad    to
    56e8756      
    Compare
  
    7b0fde5    to
    52776b6      
    Compare
  
            
          
                ...test/functional/com/mongodb/client/model/expressions/InContextExpressionsFunctionalTest.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                ...test/functional/com/mongodb/client/model/expressions/InContextExpressionsFunctionalTest.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                ...test/functional/com/mongodb/client/model/expressions/InContextExpressionsFunctionalTest.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am imagining that this could be something for the future.
        
          
                driver-core/src/main/com/mongodb/client/model/expressions/Expressions.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                ...test/functional/com/mongodb/client/model/expressions/InContextExpressionsFunctionalTest.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                ...test/functional/com/mongodb/client/model/expressions/InContextExpressionsFunctionalTest.java
          
            Show resolved
            Hide resolved
        
              
          
                driver-core/src/main/com/mongodb/client/model/expressions/Expressions.java
              
                Outdated
          
            Show resolved
            Hide resolved
        
      e71ebd8    to
    1449f2f      
    Compare
  
    f6e5a14    to
    1fb5893      
    Compare
  
    | 
           Rebased, no conflicts  | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
5dd9987    to
    647e307      
    Compare
  
    1fb5893    to
    458d786      
    Compare
  
    * Implement boolean expressions (#1025) JAVA-4779 * Implement filter, map, reduce (#1031) JAVA-4781 * Implement eq, ne, gt, gte, lt, lte (#1033) JAVA-4784 * Implement string expressions (#1036) JAVA-4801 * Implement arithmetic expressions (#1037) Implement arithmetic expressions (from top 50, and others) JAVA-4803 * Implement array expressions (#1043) JAVA-4805 * Implement date expressions (#1045) JAVA-4804 * Implement conversion/type expressions (#1050) JAVA-4802 * Implement document expressions (#1052) JAVA-4782 * Replace reduce with individual reductions (#1053) JAVA-4814 * Implement map expressions (#1054) JAVA-4817 * Implement switch expression (#1055) JAVA-4813 * Test expressions in context (#1057) JAVA-4820 * Add javadoc for boolean, date, number, integer, and expression (#1059) JAVA-4799 * Update and add documentation (#1059) * Fix, tests JAVA-4799 * Add `@MqlUnchecked` and a few usage examples (#1059) JAVA-4799 * Add has to document, add tests (#1070) JAVA-4799 * Add javadocs for remaining classes (#1070) JAVA-4799 * 5.2 annotations (#1070) JAVA-4799 * 5.0 annotations (#1070) JAVA-4799 * 4.4 annotations (#1070) JAVA-4799 * 4.2 annotations (#1070) JAVA-4799 * 4.0 annotations (#1070) JAVA-4799 * Update and add documentation, add tests, fix minor issues (#1070) Rename extractBsonValue Fix access modifiers Remove excess comments Update docs Fix: behaviour of get Add notNull to API, add notNullApi test Fix docs/annotations, tests Fix docs, annotations, since Fix docs Revert external Add missing MqlUnchecked Fix missing null checks Checkstyle JAVA-4799 * Rename to Mql (automated) (#1073) JAVA-3879 * Rename methods (automated) (#1073) JAVA-3879 * Update naming, terms, and missing checks and annotations (#1073) JAVA-3879 --------- Co-authored-by: Valentin Kovalenko <valentin.kovalenko@mongodb.com>
JAVA-4820