mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
data examples update
This commit is contained in:
@@ -6712,8 +6712,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -6782,7 +6781,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -6799,10 +6798,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6904,7 +6900,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10046,7 +10042,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10164,7 +10160,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11516,7 +11516,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11814,8 +11814,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11884,7 +11883,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11901,10 +11900,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12006,7 +12002,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -41806,7 +41802,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -42166,7 +42162,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -42284,7 +42280,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11031,7 +11031,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11333,8 +11333,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11405,7 +11404,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11422,10 +11421,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11529,7 +11525,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -31514,7 +31510,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -31880,7 +31876,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -32000,7 +31996,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -6712,8 +6712,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -6782,7 +6781,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -6799,10 +6798,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6904,7 +6900,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10046,7 +10042,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10164,7 +10160,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11516,7 +11516,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11814,8 +11814,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11884,7 +11883,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11901,10 +11900,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12006,7 +12002,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -41806,7 +41802,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -42166,7 +42162,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -42284,7 +42280,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11031,7 +11031,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11333,8 +11333,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11405,7 +11404,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11422,10 +11421,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11529,7 +11525,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -31514,7 +31510,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -31880,7 +31876,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -32000,7 +31996,7 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -6793,8 +6793,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -6856,8 +6855,8 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"default": [],
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -6876,10 +6875,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -6975,7 +6971,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10049,7 +10045,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10163,7 +10159,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11527,7 +11527,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11815,8 +11815,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11878,8 +11877,8 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"default": [],
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11898,10 +11897,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -11997,7 +11993,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -41723,7 +41719,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -42067,7 +42063,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -42181,7 +42177,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11032,7 +11032,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11324,8 +11324,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11389,8 +11388,8 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"default": [],
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11409,10 +11408,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -11510,7 +11506,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -31497,7 +31493,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -31847,7 +31843,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -31963,7 +31959,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -6793,8 +6793,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -6856,8 +6855,8 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"default": [],
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -6876,10 +6875,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -6975,7 +6971,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10049,7 +10045,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -10163,7 +10159,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11527,7 +11527,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11815,8 +11815,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11878,8 +11877,8 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"default": [],
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11898,10 +11897,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -11997,7 +11993,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -41723,7 +41719,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -42067,7 +42063,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -42181,7 +42177,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -11032,7 +11032,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -11324,8 +11324,7 @@
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documentId",
|
||||
"data"
|
||||
"documentId"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
@@ -11389,8 +11388,8 @@
|
||||
"data": {
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include all required attributes of the document to be created or updated.",
|
||||
"default": {},
|
||||
"x-example": "{}"
|
||||
"default": [],
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -11409,10 +11408,7 @@
|
||||
"x-example": "<TRANSACTION_ID>",
|
||||
"x-nullable": true
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -11510,7 +11506,7 @@
|
||||
"type": "object",
|
||||
"description": "Document data as JSON object. Include only attribute and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -31497,7 +31493,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only column and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
@@ -31847,7 +31843,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include all required columns of the row to be created or updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
@@ -31963,7 +31959,7 @@
|
||||
"type": "object",
|
||||
"description": "Row data as JSON object. Include only columns and value pairs to be updated.",
|
||||
"default": [],
|
||||
"x-example": "{}"
|
||||
"x-example": "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}"
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
|
||||
@@ -14,7 +14,13 @@ databases.updateDocument(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<COLLECTION_ID>", // collectionId
|
||||
"<DOCUMENT_ID>", // documentId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -14,7 +14,13 @@ databases.upsertDocument(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<COLLECTION_ID>", // collectionId
|
||||
"<DOCUMENT_ID>", // documentId
|
||||
Map.of("a", "b"), // data
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 30,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -14,7 +14,13 @@ tablesDB.updateRow(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<TABLE_ID>", // tableId
|
||||
"<ROW_ID>", // rowId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -14,7 +14,13 @@ tablesDB.upsertRow(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<TABLE_ID>", // tableId
|
||||
"<ROW_ID>", // rowId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -14,7 +14,13 @@ val result = databases.updateDocument(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
collectionId = "<COLLECTION_ID>",
|
||||
documentId = "<DOCUMENT_ID>",
|
||||
data = mapOf( "a" to "b" ), // (optional)
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // (optional)
|
||||
permissions = listOf(Permission.read(Role.any())), // (optional)
|
||||
transactionId = "<TRANSACTION_ID>", // (optional)
|
||||
)
|
||||
@@ -14,7 +14,13 @@ val result = databases.upsertDocument(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
collectionId = "<COLLECTION_ID>",
|
||||
documentId = "<DOCUMENT_ID>",
|
||||
data = mapOf( "a" to "b" ),
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 30,
|
||||
"isAdmin" to false
|
||||
), // (optional)
|
||||
permissions = listOf(Permission.read(Role.any())), // (optional)
|
||||
transactionId = "<TRANSACTION_ID>", // (optional)
|
||||
)
|
||||
@@ -14,7 +14,13 @@ val result = tablesDB.updateRow(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
tableId = "<TABLE_ID>",
|
||||
rowId = "<ROW_ID>",
|
||||
data = mapOf( "a" to "b" ), // (optional)
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // (optional)
|
||||
permissions = listOf(Permission.read(Role.any())), // (optional)
|
||||
transactionId = "<TRANSACTION_ID>", // (optional)
|
||||
)
|
||||
@@ -14,7 +14,13 @@ val result = tablesDB.upsertRow(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
tableId = "<TABLE_ID>",
|
||||
rowId = "<ROW_ID>",
|
||||
data = mapOf( "a" to "b" ), // (optional)
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // (optional)
|
||||
permissions = listOf(Permission.read(Role.any())), // (optional)
|
||||
transactionId = "<TRANSACTION_ID>", // (optional)
|
||||
)
|
||||
@@ -10,7 +10,13 @@ let document = try await databases.updateDocument(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: [:], // optional
|
||||
data: [
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
], // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -10,7 +10,13 @@ let document = try await databases.upsertDocument(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: [:],
|
||||
data: [
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
], // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -10,7 +10,13 @@ let row = try await tablesDB.updateRow(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: [:], // optional
|
||||
data: [
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
], // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -10,7 +10,13 @@ let row = try await tablesDB.upsertRow(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: [:], // optional
|
||||
data: [
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
], // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -12,7 +12,13 @@ Document result = await databases.updateDocument(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>', // optional
|
||||
);
|
||||
|
||||
@@ -12,7 +12,13 @@ Document result = await databases.upsertDocument(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {},
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>', // optional
|
||||
);
|
||||
|
||||
@@ -12,7 +12,13 @@ Row result = await tablesDB.updateRow(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>', // optional
|
||||
);
|
||||
|
||||
@@ -12,7 +12,13 @@ Row result = await tablesDB.upsertRow(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>', // optional
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await databases.updateDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: ["read("any")"], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await databases.upsertDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {},
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: ["read("any")"], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await tablesDB.updateRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: ["read("any")"], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await tablesDB.upsertRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: ["read("any")"], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -7,7 +7,13 @@ X-Appwrite-Session:
|
||||
X-Appwrite-JWT: <YOUR_JWT>
|
||||
|
||||
{
|
||||
"data": {},
|
||||
"data": {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
},
|
||||
"permissions": ["read(\"any\")"],
|
||||
"transactionId": "<TRANSACTION_ID>"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,13 @@ X-Appwrite-Session:
|
||||
X-Appwrite-JWT: <YOUR_JWT>
|
||||
|
||||
{
|
||||
"data": {},
|
||||
"data": {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
},
|
||||
"permissions": ["read(\"any\")"],
|
||||
"transactionId": "<TRANSACTION_ID>"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,13 @@ X-Appwrite-Session:
|
||||
X-Appwrite-JWT: <YOUR_JWT>
|
||||
|
||||
{
|
||||
"data": {},
|
||||
"data": {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
},
|
||||
"permissions": ["read(\"any\")"],
|
||||
"transactionId": "<TRANSACTION_ID>"
|
||||
}
|
||||
|
||||
@@ -7,7 +7,13 @@ X-Appwrite-Session:
|
||||
X-Appwrite-JWT: <YOUR_JWT>
|
||||
|
||||
{
|
||||
"data": {},
|
||||
"data": {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
},
|
||||
"permissions": ["read(\"any\")"],
|
||||
"transactionId": "<TRANSACTION_ID>"
|
||||
}
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await databases.updateDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await databases.upsertDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {},
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await tablesDB.updateRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await tablesDB.upsertRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
appwrite databases upsert-document \
|
||||
--database-id <DATABASE_ID> \
|
||||
--collection-id <COLLECTION_ID> \
|
||||
--document-id <DOCUMENT_ID> \
|
||||
--data '{ "key": "value" }'
|
||||
--document-id <DOCUMENT_ID>
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await databases.updateDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -9,7 +9,13 @@ const databases = new Databases(client);
|
||||
const result = await databases.updateDocuments({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
queries: [], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await databases.upsertDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {},
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await tablesDB.updateRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -9,7 +9,13 @@ const tablesDB = new TablesDB(client);
|
||||
const result = await tablesDB.updateRows({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
queries: [], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const result = await tablesDB.upsertRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [Permission.read(Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -13,7 +13,13 @@ Document result = await databases.updateDocument(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {}, // (optional)
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // (optional)
|
||||
permissions: [Permission.read(Role.any())], // (optional)
|
||||
transactionId: '<TRANSACTION_ID>', // (optional)
|
||||
);
|
||||
|
||||
@@ -10,7 +10,13 @@ Databases databases = Databases(client);
|
||||
DocumentList result = await databases.updateDocuments(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
data: {}, // (optional)
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // (optional)
|
||||
queries: [], // (optional)
|
||||
transactionId: '<TRANSACTION_ID>', // (optional)
|
||||
);
|
||||
|
||||
@@ -13,7 +13,13 @@ Document result = await databases.upsertDocument(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {},
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}, // (optional)
|
||||
permissions: [Permission.read(Role.any())], // (optional)
|
||||
transactionId: '<TRANSACTION_ID>', // (optional)
|
||||
);
|
||||
|
||||
@@ -13,7 +13,13 @@ Row result = await tablesDB.updateRow(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // (optional)
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // (optional)
|
||||
permissions: [Permission.read(Role.any())], // (optional)
|
||||
transactionId: '<TRANSACTION_ID>', // (optional)
|
||||
);
|
||||
|
||||
@@ -10,7 +10,13 @@ TablesDB tablesDB = TablesDB(client);
|
||||
RowList result = await tablesDB.updateRows(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
data: {}, // (optional)
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // (optional)
|
||||
queries: [], // (optional)
|
||||
transactionId: '<TRANSACTION_ID>', // (optional)
|
||||
);
|
||||
|
||||
@@ -13,7 +13,13 @@ Row result = await tablesDB.upsertRow(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // (optional)
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // (optional)
|
||||
permissions: [Permission.read(Role.any())], // (optional)
|
||||
transactionId: '<TRANSACTION_ID>', // (optional)
|
||||
);
|
||||
|
||||
@@ -13,7 +13,13 @@ Document result = await databases.UpdateDocument(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: [object], // optional
|
||||
data: new {
|
||||
username = "walter.obrien",
|
||||
email = "walter.obrien@example.com",
|
||||
fullName = "Walter O'Brien",
|
||||
age = 33,
|
||||
isAdmin = false
|
||||
}, // optional
|
||||
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
);
|
||||
@@ -12,7 +12,13 @@ Databases databases = new Databases(client);
|
||||
DocumentList result = await databases.UpdateDocuments(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
data: [object], // optional
|
||||
data: new {
|
||||
username = "walter.obrien",
|
||||
email = "walter.obrien@example.com",
|
||||
fullName = "Walter O'Brien",
|
||||
age = 33,
|
||||
isAdmin = false
|
||||
}, // optional
|
||||
queries: new List<string>(), // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
);
|
||||
@@ -13,7 +13,13 @@ Document result = await databases.UpsertDocument(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: [object],
|
||||
data: new {
|
||||
username = "walter.obrien",
|
||||
email = "walter.obrien@example.com",
|
||||
fullName = "Walter O'Brien",
|
||||
age = 30,
|
||||
isAdmin = false
|
||||
}, // optional
|
||||
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
);
|
||||
@@ -13,7 +13,13 @@ Row result = await tablesDB.UpdateRow(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: [object], // optional
|
||||
data: new {
|
||||
username = "walter.obrien",
|
||||
email = "walter.obrien@example.com",
|
||||
fullName = "Walter O'Brien",
|
||||
age = 33,
|
||||
isAdmin = false
|
||||
}, // optional
|
||||
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
);
|
||||
@@ -12,7 +12,13 @@ TablesDB tablesDB = new TablesDB(client);
|
||||
RowList result = await tablesDB.UpdateRows(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
data: [object], // optional
|
||||
data: new {
|
||||
username = "walter.obrien",
|
||||
email = "walter.obrien@example.com",
|
||||
fullName = "Walter O'Brien",
|
||||
age = 33,
|
||||
isAdmin = false
|
||||
}, // optional
|
||||
queries: new List<string>(), // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
);
|
||||
@@ -13,7 +13,13 @@ Row result = await tablesDB.UpsertRow(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: [object], // optional
|
||||
data: new {
|
||||
username = "walter.obrien",
|
||||
email = "walter.obrien@example.com",
|
||||
fullName = "Walter O'Brien",
|
||||
age = 33,
|
||||
isAdmin = false
|
||||
}, // optional
|
||||
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
|
||||
transactionId: "<TRANSACTION_ID>" // optional
|
||||
);
|
||||
@@ -18,7 +18,13 @@ response, error := service.UpdateDocument(
|
||||
"<DATABASE_ID>",
|
||||
"<COLLECTION_ID>",
|
||||
"<DOCUMENT_ID>",
|
||||
databases.WithUpdateDocumentData(map[string]interface{}{}),
|
||||
databases.WithUpdateDocumentData(map[string]interface{}{
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}),
|
||||
databases.WithUpdateDocumentPermissions(interface{}{"read("any")"}),
|
||||
databases.WithUpdateDocumentTransactionId("<TRANSACTION_ID>"),
|
||||
)
|
||||
|
||||
@@ -17,7 +17,13 @@ service := databases.New(client)
|
||||
response, error := service.UpdateDocuments(
|
||||
"<DATABASE_ID>",
|
||||
"<COLLECTION_ID>",
|
||||
databases.WithUpdateDocumentsData(map[string]interface{}{}),
|
||||
databases.WithUpdateDocumentsData(map[string]interface{}{
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}),
|
||||
databases.WithUpdateDocumentsQueries([]interface{}{}),
|
||||
databases.WithUpdateDocumentsTransactionId("<TRANSACTION_ID>"),
|
||||
)
|
||||
|
||||
@@ -18,7 +18,13 @@ response, error := service.UpsertDocument(
|
||||
"<DATABASE_ID>",
|
||||
"<COLLECTION_ID>",
|
||||
"<DOCUMENT_ID>",
|
||||
map[string]interface{}{},
|
||||
databases.WithUpsertDocumentData(map[string]interface{}{
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}),
|
||||
databases.WithUpsertDocumentPermissions(interface{}{"read("any")"}),
|
||||
databases.WithUpsertDocumentTransactionId("<TRANSACTION_ID>"),
|
||||
)
|
||||
|
||||
@@ -18,7 +18,13 @@ response, error := service.UpdateRow(
|
||||
"<DATABASE_ID>",
|
||||
"<TABLE_ID>",
|
||||
"<ROW_ID>",
|
||||
tablesdb.WithUpdateRowData(map[string]interface{}{}),
|
||||
tablesdb.WithUpdateRowData(map[string]interface{}{
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}),
|
||||
tablesdb.WithUpdateRowPermissions(interface{}{"read("any")"}),
|
||||
tablesdb.WithUpdateRowTransactionId("<TRANSACTION_ID>"),
|
||||
)
|
||||
|
||||
@@ -17,7 +17,13 @@ service := tablesdb.New(client)
|
||||
response, error := service.UpdateRows(
|
||||
"<DATABASE_ID>",
|
||||
"<TABLE_ID>",
|
||||
tablesdb.WithUpdateRowsData(map[string]interface{}{}),
|
||||
tablesdb.WithUpdateRowsData(map[string]interface{}{
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}),
|
||||
tablesdb.WithUpdateRowsQueries([]interface{}{}),
|
||||
tablesdb.WithUpdateRowsTransactionId("<TRANSACTION_ID>"),
|
||||
)
|
||||
|
||||
@@ -18,7 +18,13 @@ response, error := service.UpsertRow(
|
||||
"<DATABASE_ID>",
|
||||
"<TABLE_ID>",
|
||||
"<ROW_ID>",
|
||||
tablesdb.WithUpsertRowData(map[string]interface{}{}),
|
||||
tablesdb.WithUpsertRowData(map[string]interface{}{
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}),
|
||||
tablesdb.WithUpsertRowPermissions(interface{}{"read("any")"}),
|
||||
tablesdb.WithUpsertRowTransactionId("<TRANSACTION_ID>"),
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -2,7 +2,7 @@ mutation {
|
||||
databasesUpdateDocuments(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
queries: [],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
collectionId: "<COLLECTION_ID>",
|
||||
documentId: "<DOCUMENT_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":30,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -2,7 +2,7 @@ mutation {
|
||||
tablesDBUpdateRows(
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
queries: [],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -3,7 +3,7 @@ mutation {
|
||||
databaseId: "<DATABASE_ID>",
|
||||
tableId: "<TABLE_ID>",
|
||||
rowId: "<ROW_ID>",
|
||||
data: "{}",
|
||||
data: "{\"username\":\"walter.obrien\",\"email\":\"walter.obrien@example.com\",\"fullName\":\"Walter O'Brien\",\"age\":33,\"isAdmin\":false}",
|
||||
permissions: ["read("any")"],
|
||||
transactionId: "<TRANSACTION_ID>"
|
||||
) {
|
||||
|
||||
@@ -15,7 +15,13 @@ databases.updateDocument(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<COLLECTION_ID>", // collectionId
|
||||
"<DOCUMENT_ID>", // documentId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -12,7 +12,13 @@ Databases databases = new Databases(client);
|
||||
databases.updateDocuments(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<COLLECTION_ID>", // collectionId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(), // queries (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -15,7 +15,13 @@ databases.upsertDocument(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<COLLECTION_ID>", // collectionId
|
||||
"<DOCUMENT_ID>", // documentId
|
||||
Map.of("a", "b"), // data
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 30,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -15,7 +15,13 @@ tablesDB.updateRow(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<TABLE_ID>", // tableId
|
||||
"<ROW_ID>", // rowId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -12,7 +12,13 @@ TablesDB tablesDB = new TablesDB(client);
|
||||
tablesDB.updateRows(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<TABLE_ID>", // tableId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(), // queries (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -15,7 +15,13 @@ tablesDB.upsertRow(
|
||||
"<DATABASE_ID>", // databaseId
|
||||
"<TABLE_ID>", // tableId
|
||||
"<ROW_ID>", // rowId
|
||||
Map.of("a", "b"), // data (optional)
|
||||
Map.of(
|
||||
"username", "walter.obrien",
|
||||
"email", "walter.obrien@example.com",
|
||||
"fullName", "Walter O'Brien",
|
||||
"age", 33,
|
||||
"isAdmin", false
|
||||
), // data (optional)
|
||||
List.of(Permission.read(Role.any())), // permissions (optional)
|
||||
"<TRANSACTION_ID>", // transactionId (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
|
||||
@@ -15,7 +15,13 @@ val response = databases.updateDocument(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
collectionId = "<COLLECTION_ID>",
|
||||
documentId = "<DOCUMENT_ID>",
|
||||
data = mapOf( "a" to "b" ), // optional
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // optional
|
||||
permissions = listOf(Permission.read(Role.any())), // optional
|
||||
transactionId = "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -12,7 +12,13 @@ val databases = Databases(client)
|
||||
val response = databases.updateDocuments(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
collectionId = "<COLLECTION_ID>",
|
||||
data = mapOf( "a" to "b" ), // optional
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // optional
|
||||
queries = listOf(), // optional
|
||||
transactionId = "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -15,7 +15,13 @@ val response = databases.upsertDocument(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
collectionId = "<COLLECTION_ID>",
|
||||
documentId = "<DOCUMENT_ID>",
|
||||
data = mapOf( "a" to "b" ),
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 30,
|
||||
"isAdmin" to false
|
||||
), // optional
|
||||
permissions = listOf(Permission.read(Role.any())), // optional
|
||||
transactionId = "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -15,7 +15,13 @@ val response = tablesDB.updateRow(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
tableId = "<TABLE_ID>",
|
||||
rowId = "<ROW_ID>",
|
||||
data = mapOf( "a" to "b" ), // optional
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // optional
|
||||
permissions = listOf(Permission.read(Role.any())), // optional
|
||||
transactionId = "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -12,7 +12,13 @@ val tablesDB = TablesDB(client)
|
||||
val response = tablesDB.updateRows(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
tableId = "<TABLE_ID>",
|
||||
data = mapOf( "a" to "b" ), // optional
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // optional
|
||||
queries = listOf(), // optional
|
||||
transactionId = "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -15,7 +15,13 @@ val response = tablesDB.upsertRow(
|
||||
databaseId = "<DATABASE_ID>",
|
||||
tableId = "<TABLE_ID>",
|
||||
rowId = "<ROW_ID>",
|
||||
data = mapOf( "a" to "b" ), // optional
|
||||
data = mapOf(
|
||||
"username" to "walter.obrien",
|
||||
"email" to "walter.obrien@example.com",
|
||||
"fullName" to "Walter O'Brien",
|
||||
"age" to 33,
|
||||
"isAdmin" to false
|
||||
), // optional
|
||||
permissions = listOf(Permission.read(Role.any())), // optional
|
||||
transactionId = "<TRANSACTION_ID>" // optional
|
||||
)
|
||||
|
||||
@@ -11,7 +11,13 @@ const result = await databases.updateDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const databases = new sdk.Databases(client);
|
||||
const result = await databases.updateDocuments({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
queries: [], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -11,7 +11,13 @@ const result = await databases.upsertDocument({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: {},
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 30,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -11,7 +11,13 @@ const result = await tablesDB.updateRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -10,7 +10,13 @@ const tablesDB = new sdk.TablesDB(client);
|
||||
const result = await tablesDB.updateRows({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
queries: [], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -11,7 +11,13 @@ const result = await tablesDB.upsertRow({
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: {}, // optional
|
||||
data: {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": false
|
||||
}, // optional
|
||||
permissions: [sdk.Permission.read(sdk.Role.any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
});
|
||||
|
||||
@@ -16,7 +16,13 @@ $result = $databases->updateDocument(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: [], // optional
|
||||
data: [
|
||||
'username' => 'walter.obrien',
|
||||
'email' => 'walter.obrien@example.com',
|
||||
'fullName' => 'Walter O'Brien',
|
||||
'age' => 33,
|
||||
'isAdmin' => false
|
||||
], // optional
|
||||
permissions: [Permission::read(Role::any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
);
|
||||
@@ -13,7 +13,13 @@ $databases = new Databases($client);
|
||||
$result = $databases->updateDocuments(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
data: [], // optional
|
||||
data: [
|
||||
'username' => 'walter.obrien',
|
||||
'email' => 'walter.obrien@example.com',
|
||||
'fullName' => 'Walter O'Brien',
|
||||
'age' => 33,
|
||||
'isAdmin' => false
|
||||
], // optional
|
||||
queries: [], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
);
|
||||
@@ -16,7 +16,13 @@ $result = $databases->upsertDocument(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
collectionId: '<COLLECTION_ID>',
|
||||
documentId: '<DOCUMENT_ID>',
|
||||
data: [],
|
||||
data: [
|
||||
'username' => 'walter.obrien',
|
||||
'email' => 'walter.obrien@example.com',
|
||||
'fullName' => 'Walter O'Brien',
|
||||
'age' => 30,
|
||||
'isAdmin' => false
|
||||
], // optional
|
||||
permissions: [Permission::read(Role::any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
);
|
||||
@@ -16,7 +16,13 @@ $result = $tablesDB->updateRow(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: [], // optional
|
||||
data: [
|
||||
'username' => 'walter.obrien',
|
||||
'email' => 'walter.obrien@example.com',
|
||||
'fullName' => 'Walter O'Brien',
|
||||
'age' => 33,
|
||||
'isAdmin' => false
|
||||
], // optional
|
||||
permissions: [Permission::read(Role::any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
);
|
||||
@@ -13,7 +13,13 @@ $tablesDB = new TablesDB($client);
|
||||
$result = $tablesDB->updateRows(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
data: [], // optional
|
||||
data: [
|
||||
'username' => 'walter.obrien',
|
||||
'email' => 'walter.obrien@example.com',
|
||||
'fullName' => 'Walter O'Brien',
|
||||
'age' => 33,
|
||||
'isAdmin' => false
|
||||
], // optional
|
||||
queries: [], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
);
|
||||
@@ -16,7 +16,13 @@ $result = $tablesDB->upsertRow(
|
||||
databaseId: '<DATABASE_ID>',
|
||||
tableId: '<TABLE_ID>',
|
||||
rowId: '<ROW_ID>',
|
||||
data: [], // optional
|
||||
data: [
|
||||
'username' => 'walter.obrien',
|
||||
'email' => 'walter.obrien@example.com',
|
||||
'fullName' => 'Walter O'Brien',
|
||||
'age' => 33,
|
||||
'isAdmin' => false
|
||||
], // optional
|
||||
permissions: [Permission::read(Role::any())], // optional
|
||||
transactionId: '<TRANSACTION_ID>' // optional
|
||||
);
|
||||
@@ -14,7 +14,13 @@ result = databases.update_document(
|
||||
database_id = '<DATABASE_ID>',
|
||||
collection_id = '<COLLECTION_ID>',
|
||||
document_id = '<DOCUMENT_ID>',
|
||||
data = {}, # optional
|
||||
data = {
|
||||
"username": "walter.obrien",
|
||||
"email": "walter.obrien@example.com",
|
||||
"fullName": "Walter O'Brien",
|
||||
"age": 33,
|
||||
"isAdmin": False
|
||||
}, # optional
|
||||
permissions = [Permission.read(Role.any())], # optional
|
||||
transaction_id = '<TRANSACTION_ID>' # optional
|
||||
)
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user