0.0.12 • Published 6 months ago

dbobject_api_ts v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

query design

support ANDs and ORs support querying multiple properties string property equals vs substring number property equals vs near dates before and after and equals array equals vs contains vs contains substring object property sub-property booleans? enums?

[
  { "prop": "name", "value": "bob", "comparison": "equals" },
  ["name", "=", "bob"],
  { "operation": "or", "clauses": [] },
  { "operation": "and", "clauses": [] },

  {
    "and": [
      { "prop": "name", "op": "equals", "value": "bob" },
      { "name": { "equals": "value" } }
    ]
  }
]

find all documents when type is bookmark and the contents contains the string "javascript"

{
  "and": [
    { "prop": "type", "op": "equals", "value": "bookmark" },
    {
      "prop": "contents",
      "op": "substring",
      "value": "javascript",
      "options": { "caseinsensitive": true }
    }
  ]
}

projection / pick

Ignore for now. You always get the first object. Get vs get with attachments blobs?

0.0.10

6 months ago

0.0.11

6 months ago

0.0.12

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago