Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions content/docs/references/data/ComparisonOperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: ComparisonOperator
description: ComparisonOperator Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$gt** | `number \| string` | optional | |
| **$gte** | `number \| string` | optional | |
| **$lt** | `number \| string` | optional | |
| **$lte** | `number \| string` | optional | |
11 changes: 11 additions & 0 deletions content/docs/references/data/EqualityOperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: EqualityOperator
description: EqualityOperator Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$eq** | `any` | optional | |
| **$ne** | `any` | optional | |
23 changes: 23 additions & 0 deletions content/docs/references/data/FieldOperators.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
title: FieldOperators
description: FieldOperators Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$eq** | `any` | optional | |
| **$ne** | `any` | optional | |
| **$gt** | `number \| string` | optional | |
| **$gte** | `number \| string` | optional | |
| **$lt** | `number \| string` | optional | |
| **$lte** | `number \| string` | optional | |
| **$in** | `any[]` | optional | |
| **$nin** | `any[]` | optional | |
| **$between** | `any[]` | optional | |
| **$contains** | `string` | optional | |
| **$startsWith** | `string` | optional | |
| **$endsWith** | `string` | optional | |
| **$null** | `boolean` | optional | |
| **$exist** | `boolean` | optional | |
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property should be $exists (with an 's') to match MongoDB's standard operator name.

Suggested change
| **$exist** | `boolean` | optional | |
| **$exists** | `boolean` | optional | |

Copilot uses AI. Check for mistakes.
5 changes: 5 additions & 0 deletions content/docs/references/data/FilterCondition.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: FilterCondition
description: FilterCondition Schema Reference
---

12 changes: 12 additions & 0 deletions content/docs/references/data/NormalizedFilter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: NormalizedFilter
description: NormalizedFilter Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$and** | `Record<string, object> \| any[]` | optional | |
| **$or** | `Record<string, object> \| any[]` | optional | |
| **$not** | `Record<string, object> \| any` | optional | |
10 changes: 10 additions & 0 deletions content/docs/references/data/QueryFilter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: QueryFilter
description: QueryFilter Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **where** | `any` | optional | |
10 changes: 10 additions & 0 deletions content/docs/references/data/RangeOperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: RangeOperator
description: RangeOperator Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$between** | `any[]` | optional | |
11 changes: 11 additions & 0 deletions content/docs/references/data/SetOperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: SetOperator
description: SetOperator Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$in** | `any[]` | optional | |
| **$nin** | `any[]` | optional | |
11 changes: 11 additions & 0 deletions content/docs/references/data/SpecialOperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: SpecialOperator
description: SpecialOperator Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$null** | `boolean` | optional | |
| **$exist** | `boolean` | optional | |
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property should be $exists (with an 's') to match MongoDB's standard operator name.

Suggested change
| **$exist** | `boolean` | optional | |
| **$exists** | `boolean` | optional | |

Copilot uses AI. Check for mistakes.
12 changes: 12 additions & 0 deletions content/docs/references/data/StringOperator.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: StringOperator
description: StringOperator Schema Reference
---

## Properties

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$contains** | `string` | optional | |
| **$startsWith** | `string` | optional | |
| **$endsWith** | `string` | optional | |
56 changes: 56 additions & 0 deletions packages/spec/json-schema/ComparisonOperator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"$ref": "#/definitions/ComparisonOperator",
"definitions": {
"ComparisonOperator": {
"type": "object",
"properties": {
"$gt": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$gte": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$lt": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$lte": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
}
},
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
14 changes: 14 additions & 0 deletions packages/spec/json-schema/EqualityOperator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$ref": "#/definitions/EqualityOperator",
"definitions": {
"EqualityOperator": {
"type": "object",
"properties": {
"$eq": {},
"$ne": {}
},
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
108 changes: 108 additions & 0 deletions packages/spec/json-schema/FieldOperators.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"$ref": "#/definitions/FieldOperators",
"definitions": {
"FieldOperators": {
"type": "object",
"properties": {
"$eq": {},
"$ne": {},
"$gt": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$gte": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$lt": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$lte": {
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
"$in": {
"type": "array"
},
"$nin": {
"type": "array"
},
"$between": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
},
{
"anyOf": [
{
"type": "number"
},
{
"type": "string",
"format": "date-time"
}
]
}
]
},
"$contains": {
"type": "string"
},
"$startsWith": {
"type": "string"
},
"$endsWith": {
"type": "string"
},
"$null": {
"type": "boolean"
},
"$exist": {
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The property name should be $exists (with an 's') to match MongoDB's standard operator name.

Suggested change
"$exist": {
"$exists": {

Copilot uses AI. Check for mistakes.
"type": "boolean"
}
},
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
28 changes: 28 additions & 0 deletions packages/spec/json-schema/FilterCondition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$ref": "#/definitions/FilterCondition",
"definitions": {
"FilterCondition": {
"allOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {}
},
"$or": {
"type": "array",
"items": {}
},
"$not": {}
}
}
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}
Loading
Loading