Update docs

This commit is contained in:
Jake Barnby
2025-09-06 05:27:47 +12:00
parent 1479768bf2
commit 7c3d526cda
306 changed files with 655 additions and 339 deletions
Generated
+2 -2
View File
@@ -8512,7 +8512,7 @@
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
@@ -8536,5 +8536,5 @@
"platform-overrides": {
"php": "8.3"
},
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}
@@ -9,7 +9,11 @@ Client client = new Client(context)
Account account = new Account(client);
account.updatePrefs(
mapOf( "a" to "b" ), // prefs
mapOf(
"language" to "en",
"timezone" to "UTC",
"darkTheme" to true
), // prefs
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -12,7 +12,13 @@ databases.createDocument(
"<DATABASE_ID>", // databaseId
"<COLLECTION_ID>", // collectionId
"<DOCUMENT_ID>", // documentId
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
), // data
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
@@ -12,7 +12,13 @@ tablesDB.createRow(
"<DATABASE_ID>", // databaseId
"<TABLE_ID>", // tableId
"<ROW_ID>", // rowId
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
), // data
listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
@@ -9,5 +9,9 @@ val client = Client(context)
val account = Account(client)
val result = account.updatePrefs(
prefs = mapOf( "a" to "b" ),
prefs = mapOf(
"language" to "en",
"timezone" to "UTC",
"darkTheme" to true
),
)
@@ -12,6 +12,12 @@ val result = databases.createDocument(
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
),
permissions = listOf("read("any")"), // (optional)
)
@@ -12,6 +12,12 @@ val result = tablesDB.createRow(
databaseId = "<DATABASE_ID>",
tableId = "<TABLE_ID>",
rowId = "<ROW_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
),
permissions = listOf("read("any")"), // (optional)
)
@@ -7,6 +7,10 @@ let client = Client()
let account = Account(client)
let user = try await account.updatePrefs(
prefs: [:]
prefs: [
"language": "en",
"timezone": "UTC",
"darkTheme": true
]
)
@@ -10,7 +10,13 @@ let document = try await databases.createDocument(
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")"] // optional
)
@@ -10,7 +10,13 @@ let row = try await tablesDB.createRow(
databaseId: "<DATABASE_ID>",
tableId: "<TABLE_ID>",
rowId: "<ROW_ID>",
data: [:],
data: [
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
],
permissions: ["read("any")"] // optional
)
@@ -7,5 +7,9 @@ Client client = Client()
Account account = Account(client);
User result = await account.updatePrefs(
prefs: {},
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
},
);
@@ -10,6 +10,12 @@ Document result = await databases.createDocument(
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")"], // optional
);
@@ -10,6 +10,12 @@ Row result = await tablesDB.createRow(
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"], // optional
);
@@ -1,6 +1,6 @@
mutation {
accountUpdatePrefs(
prefs: "{}"
prefs: "{\"language\":\"en\",\"timezone\":\"UTC\",\"darkTheme\":true}"
) {
_id
_createdAt
@@ -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")"]
) {
_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\":30,\"isAdmin\":false}",
permissions: ["read("any")"]
) {
_id
@@ -7,7 +7,11 @@ const client = new Client()
const account = new Account(client);
const result = await account.updatePrefs({
prefs: {}
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
}
});
console.log(result);
@@ -10,7 +10,13 @@ const result = await databases.createDocument({
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")"] // optional
});
@@ -11,8 +11,8 @@ const result = await databases.decrementDocumentAttribute({
collectionId: '<COLLECTION_ID>',
documentId: '<DOCUMENT_ID>',
attribute: '',
value: null, // optional
min: null // optional
value: 0, // optional
min: 0 // optional
});
console.log(result);
@@ -11,8 +11,8 @@ const result = await databases.incrementDocumentAttribute({
collectionId: '<COLLECTION_ID>',
documentId: '<DOCUMENT_ID>',
attribute: '',
value: null, // optional
max: null // optional
value: 0, // optional
max: 0 // optional
});
console.log(result);
@@ -9,7 +9,7 @@ const storage = new Storage(client);
const result = await storage.createFile({
bucketId: '<BUCKET_ID>',
fileId: '<FILE_ID>',
file: await pickSingle(),
file: InputFile.fromPath('/path/to/file', 'filename'),
permissions: ["read("any")"] // optional
});
@@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"] // optional
});
@@ -11,8 +11,8 @@ const result = await tablesDB.decrementRowColumn({
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
column: '',
value: null, // optional
min: null // optional
value: 0, // optional
min: 0 // optional
});
console.log(result);
@@ -11,8 +11,8 @@ const result = await tablesDB.incrementRowColumn({
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
column: '',
value: null, // optional
max: null // optional
value: 0, // optional
max: 0 // optional
});
console.log(result);
@@ -7,6 +7,6 @@ X-Appwrite-Project: <YOUR_PROJECT_ID>
{
"userId": "<USER_ID>",
"email": "email@example.com",
"password": ,
"password": "",
"name": "<NAME>"
}
@@ -7,6 +7,6 @@ X-Appwrite-Session:
X-Appwrite-JWT: <YOUR_JWT>
{
"password": ,
"password": "",
"oldPassword": "password"
}
@@ -7,5 +7,9 @@ X-Appwrite-Session:
X-Appwrite-JWT: <YOUR_JWT>
{
"prefs": {}
"prefs": {
"language": "en",
"timezone": "UTC",
"darkTheme": true
}
}
@@ -9,5 +9,5 @@ X-Appwrite-JWT: <YOUR_JWT>
{
"userId": "<USER_ID>",
"secret": "<SECRET>",
"password":
"password": ""
}
@@ -8,6 +8,12 @@ X-Appwrite-JWT: <YOUR_JWT>
{
"documentId": "<DOCUMENT_ID>",
"data": {},
"data": {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
"permissions": ["read(\"any\")"]
}
@@ -15,8 +15,7 @@ Content-Disposition: form-data; name="fileId"
--cec8e8123c05ba25
Content-Disposition: form-data; name="file"
cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc
e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16...
cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16...
--cec8e8123c05ba25
Content-Disposition: form-data; name="permissions[]"
@@ -8,6 +8,12 @@ X-Appwrite-JWT: <YOUR_JWT>
{
"rowId": "<ROW_ID>",
"data": {},
"data": {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
"permissions": ["read(\"any\")"]
}
@@ -7,7 +7,11 @@ const client = new Client()
const account = new Account(client);
const result = await account.updatePrefs({
prefs: {}
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
}
});
console.log(result);
@@ -10,7 +10,13 @@ const result = await databases.createDocument({
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")"] // optional
});
@@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"] // optional
});
@@ -7,7 +7,11 @@ const client = new Client()
const account = new Account(client);
const result = await account.updatePrefs({
prefs: {}
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
}
});
console.log(result);
@@ -10,7 +10,13 @@ const result = await databases.createDocument({
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")"] // optional
});
@@ -11,7 +11,7 @@ const result = await databases.createLineAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
console.log(result);
@@ -11,7 +11,7 @@ const result = await databases.createPointAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
console.log(result);
@@ -11,7 +11,7 @@ const result = await databases.createPolygonAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
console.log(result);
@@ -11,7 +11,7 @@ const result = await databases.updateLineAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -11,7 +11,7 @@ const result = await databases.updatePointAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -11,7 +11,7 @@ const result = await databases.updatePolygonAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -11,7 +11,7 @@ const result = await tablesDB.createLineColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
console.log(result);
@@ -11,7 +11,7 @@ const result = await tablesDB.createPointColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
console.log(result);
@@ -11,7 +11,7 @@ const result = await tablesDB.createPolygonColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
console.log(result);
@@ -10,7 +10,13 @@ const result = await tablesDB.createRow({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"] // optional
});
@@ -11,7 +11,7 @@ const result = await tablesDB.updateLineColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -11,7 +11,7 @@ const result = await tablesDB.updatePointColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -11,7 +11,7 @@ const result = await tablesDB.updatePolygonColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -8,5 +8,9 @@ Client client = Client()
Account account = Account(client);
User result = await account.updatePrefs(
prefs: {},
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
},
);
@@ -11,6 +11,12 @@ Document result = await databases.createDocument(
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")"], // (optional)
);
@@ -12,5 +12,5 @@ AttributeLine result = await databases.createLineAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
);
@@ -12,5 +12,5 @@ AttributePoint result = await databases.createPointAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
);
@@ -12,5 +12,5 @@ AttributePolygon result = await databases.createPolygonAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
);
@@ -12,6 +12,6 @@ AttributeLine result = await databases.updateLineAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
newKey: '', // (optional)
);
@@ -12,6 +12,6 @@ AttributePoint result = await databases.updatePointAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
newKey: '', // (optional)
);
@@ -12,6 +12,6 @@ AttributePolygon result = await databases.updatePolygonAttribute(
collectionId: '<COLLECTION_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
newKey: '', // (optional)
);
@@ -12,5 +12,5 @@ ColumnLine result = await tablesDB.createLineColumn(
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
);
@@ -12,5 +12,5 @@ ColumnPoint result = await tablesDB.createPointColumn(
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
);
@@ -12,5 +12,5 @@ ColumnPolygon result = await tablesDB.createPolygonColumn(
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
);
@@ -11,6 +11,12 @@ Row result = await tablesDB.createRow(
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"], // (optional)
);
@@ -12,6 +12,6 @@ ColumnLine result = await tablesDB.updateLineColumn(
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
newKey: '', // (optional)
);
@@ -12,6 +12,6 @@ ColumnPoint result = await tablesDB.updatePointColumn(
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
newKey: '', // (optional)
);
@@ -12,6 +12,6 @@ ColumnPolygon result = await tablesDB.updatePolygonColumn(
tableId: '<TABLE_ID>',
key: '',
xrequired: false,
xdefault: '', // (optional)
xdefault: [[1,2], [3, 4]], // (optional)
newKey: '', // (optional)
);
@@ -8,5 +8,9 @@ const client = new Client()
const account = new Account(client);
const response = await account.updatePrefs({
prefs: {}
prefs: {
"language": "en",
"timezone": "UTC",
"darkTheme": true
}
});
@@ -11,6 +11,12 @@ const response = await databases.createDocument({
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")"] // optional
});
@@ -12,5 +12,5 @@ const response = await databases.createLineAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
@@ -12,5 +12,5 @@ const response = await databases.createPointAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
@@ -12,5 +12,5 @@ const response = await databases.createPolygonAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
@@ -12,6 +12,6 @@ const response = await databases.updateLineAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -12,6 +12,6 @@ const response = await databases.updatePointAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -12,6 +12,6 @@ const response = await databases.updatePolygonAttribute({
collectionId: '<COLLECTION_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -12,5 +12,5 @@ const response = await tablesDB.createLineColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
@@ -12,5 +12,5 @@ const response = await tablesDB.createPointColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
@@ -12,5 +12,5 @@ const response = await tablesDB.createPolygonColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '' // optional
default: [[1,2], [3, 4]] // optional
});
@@ -11,6 +11,12 @@ const response = await tablesDB.createRow({
databaseId: '<DATABASE_ID>',
tableId: '<TABLE_ID>',
rowId: '<ROW_ID>',
data: {},
data: {
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
permissions: ["read("any")"] // optional
});
@@ -12,6 +12,6 @@ const response = await tablesDB.updateLineColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -12,6 +12,6 @@ const response = await tablesDB.updatePointColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -12,6 +12,6 @@ const response = await tablesDB.updatePolygonColumn({
tableId: '<TABLE_ID>',
key: '',
required: false,
default: '', // optional
default: [[1,2], [3, 4]], // optional
newKey: '' // optional
});
@@ -10,5 +10,9 @@ Client client = new Client()
Account account = new Account(client);
User result = await account.UpdatePrefs(
prefs: [object]
prefs: new {
language = "en",
timezone = "UTC",
darkTheme = true
}
);
@@ -13,6 +13,12 @@ Document result = await databases.CreateDocument(
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
},
permissions: ["read("any")"] // optional
);
@@ -14,5 +14,5 @@ AttributeLine result = await databases.CreateLineAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: "" // optional
default: [[1,2], [3, 4]] // optional
);
@@ -14,5 +14,5 @@ AttributePoint result = await databases.CreatePointAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: "" // optional
default: [[1,2], [3, 4]] // optional
);
@@ -14,5 +14,5 @@ AttributePolygon result = await databases.CreatePolygonAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: "" // optional
default: [[1,2], [3, 4]] // optional
);
@@ -14,6 +14,6 @@ AttributeLine result = await databases.UpdateLineAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: "", // optional
default: [[1,2], [3, 4]], // optional
newKey: "" // optional
);
@@ -14,6 +14,6 @@ AttributePoint result = await databases.UpdatePointAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: "", // optional
default: [[1,2], [3, 4]], // optional
newKey: "" // optional
);
@@ -14,6 +14,6 @@ AttributePolygon result = await databases.UpdatePolygonAttribute(
collectionId: "<COLLECTION_ID>",
key: "",
required: false,
default: "", // optional
default: [[1,2], [3, 4]], // optional
newKey: "" // optional
);
@@ -14,5 +14,5 @@ ColumnLine result = await tablesDB.CreateLineColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: "" // optional
default: [[1,2], [3, 4]] // optional
);
@@ -14,5 +14,5 @@ ColumnPoint result = await tablesDB.CreatePointColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: "" // optional
default: [[1,2], [3, 4]] // optional
);
@@ -14,5 +14,5 @@ ColumnPolygon result = await tablesDB.CreatePolygonColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: "" // optional
default: [[1,2], [3, 4]] // optional
);
@@ -13,6 +13,12 @@ Row result = await tablesDB.CreateRow(
databaseId: "<DATABASE_ID>",
tableId: "<TABLE_ID>",
rowId: "<ROW_ID>",
data: [object],
data: new {
username = "walter.obrien",
email = "walter.obrien@example.com",
fullName = "Walter O'Brien",
age = 30,
isAdmin = false
},
permissions: ["read("any")"] // optional
);
@@ -14,6 +14,6 @@ ColumnLine result = await tablesDB.UpdateLineColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: "", // optional
default: [[1,2], [3, 4]], // optional
newKey: "" // optional
);
@@ -14,6 +14,6 @@ ColumnPoint result = await tablesDB.UpdatePointColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: "", // optional
default: [[1,2], [3, 4]], // optional
newKey: "" // optional
);
@@ -14,6 +14,6 @@ ColumnPolygon result = await tablesDB.UpdatePolygonColumn(
tableId: "<TABLE_ID>",
key: "",
required: false,
default: "", // optional
default: [[1,2], [3, 4]], // optional
newKey: "" // optional
);
@@ -15,5 +15,9 @@ client := client.New(
service := account.New(client)
response, error := service.UpdatePrefs(
map[string]interface{}{},
map[string]interface{}{
"language": "en",
"timezone": "UTC",
"darkTheme": true
},
)
@@ -18,6 +18,12 @@ response, error := service.CreateDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
"<DOCUMENT_ID>",
map[string]interface{}{},
map[string]interface{}{
"username": "walter.obrien",
"email": "walter.obrien@example.com",
"fullName": "Walter O'Brien",
"age": 30,
"isAdmin": false
},
databases.WithCreateDocumentPermissions(interface{}{"read("any")"}),
)
@@ -19,5 +19,5 @@ response, error := service.CreateLineAttribute(
"<COLLECTION_ID>",
"",
false,
databases.WithCreateLineAttributeDefault(""),
databases.WithCreateLineAttributeDefault(interface{}{[1,2], [3, 4]}),
)
@@ -19,5 +19,5 @@ response, error := service.CreatePointAttribute(
"<COLLECTION_ID>",
"",
false,
databases.WithCreatePointAttributeDefault(""),
databases.WithCreatePointAttributeDefault(interface{}{[1,2], [3, 4]}),
)
@@ -19,5 +19,5 @@ response, error := service.CreatePolygonAttribute(
"<COLLECTION_ID>",
"",
false,
databases.WithCreatePolygonAttributeDefault(""),
databases.WithCreatePolygonAttributeDefault(interface{}{[1,2], [3, 4]}),
)
@@ -19,6 +19,6 @@ response, error := service.UpdateLineAttribute(
"<COLLECTION_ID>",
"",
false,
databases.WithUpdateLineAttributeDefault(""),
databases.WithUpdateLineAttributeDefault(interface{}{[1,2], [3, 4]}),
databases.WithUpdateLineAttributeNewKey(""),
)

Some files were not shown because too many files have changed in this diff Show More