FAQ Data Service
Schema Design
How can I validate that an array does not contain a certain value in a transition condition?
{
"name": "measurementSchema",
"description": "Example Measurement Schema",
"statuses": {
"active": {},
"deleted": {}
},
"creationTransition": {
"type": "manual",
"toStatus": "active"
},
"transitions": [
{
"name": "startRemoval",
"type": "manual",
"fromStatuses": [
"active"
],
"toStatus": "deleted",
"conditions": [
{
"type": "input",
"configuration": {
"type": "object",
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?!important_tag$).+$"
}
}
}
}
}
]
}
],
"properties": {
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}How can I validate that an array does contain a certain value in a transition condition?
Option 1 • Use a regex
Option 2 • Use the const keyword
Option 3 • Use the enum keyword
Data Manipulation
How can I remove values from an array property in a record?
Permissions
What is the difference between creatorId and userIds in a document?
Last updated