Telebase Docs

NoSQL Queries

Use MongoDB-like JSON query structures for highly flexible data manipulation.

Currently Supported NoSQL Filters

Telebase's NoSQL query engine currently supports the following operators and structures:

$eq (Equal to)
$ne (Not equal to)
$gt (Greater than)
$gte (Greater than/equal)
$lt (Less than)
$lte (Less than/equal)
$regex (Regular expression)
Exact Match Key-Values

* Note: Future updates will bring compatibility for 100% of standard NoSQL query selectors, combinators, and nested document fields.

SELECT

Use operators like $eq, $ne, $gt, $gte, $lt, $lte, $regex.

await fetch('https://telebase.pages.dev/api/db', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_KEY' },
  body: JSON.stringify({
    tableName: 'users',
    action: 'SELECT',
    noSqlQuery: {
      age: { $gte: 18 },
      status: 'active'
    }
  })
});

INSERT

await fetch('https://telebase.pages.dev/api/db', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_KEY' },
  body: JSON.stringify({
    tableName: 'users',
    action: 'INSERT',
    insertData: {
      name: 'Emma',
      age: 28,
      status: 'active'
    }
  })
});

UPDATE

Match rows with a query, then set new values with updateSet.

await fetch('https://telebase.pages.dev/api/db', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_KEY' },
  body: JSON.stringify({
    tableName: 'users',
    action: 'UPDATE',
    noSqlQuery: { id: 'some-uuid' },
    updateSet: { status: 'inactive' }
  })
});

DELETE

Rows matching the query are permanently removed.

await fetch('https://telebase.pages.dev/api/db', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_KEY' },
  body: JSON.stringify({
    tableName: 'users',
    action: 'DELETE',
    noSqlQuery: { id: 'some-uuid' }
  })
});

Roadmap: Expanded NoSQL Support

Telebase is expanding its document query engine to support complete NoSQL operations. Future releases will support all query formats and filters including:

  • Nested object and subdocument queries (e.g. { "profile.age": { "$gte": 18 } })
  • Array filters and manipulation operators (e.g. $in, $all, $size, $elemMatch)
  • Logical combinators for complex structures (e.g. $or, $and, $not, $nor)
  • Field projection masks, advanced sorting limits, and multi-stage aggregation aggregation pipelines