eclipse / jnosql

Eclipse JNoSQL is a framework which has the goal to help Java developers to create Jakarta EE applications with NoSQL.
Other
231 stars 72 forks source link

Standardize Criteria Query and Introduce KeySet Pagination #482

Open otaviojava opened 8 months ago

otaviojava commented 8 months ago

Which JNoSQL project the issue refers to?

JNoSQL (Core)

Use case

Currently, the project has separate classes for DocumentQuery and ColumnQuery, as well as DocumentDeleteQuery and ColumnDeleteQuery, which contain similar fields. The objective is to unify these classes into two shared API classes: SelectQuery and DeleteQuery.

This unification will pave the way for implementing KeySet pagination and enhancing the CriteriaQuery functionality.

Feature proposal

Objective:

redmitry commented 2 weeks ago

Is there any work to support JSONPath queries?

"path": "$.measures[?@.assayCode.id == 'LOINC:3141-9' && @.measurementValue.value $operator '$value']"

Currently, I have to directly generate mongo queries, because I found no way to support something like:

{
  "measures": {
    "$elemMatch": {
      "assayCode.id": "LOINC:35925-4", 
      "measurementValue.value": {"$gt": 25}
    }
  }
}

Thank you,

D.