Skip to content

Commit 7a2418c

Browse files
authored
Merge pull request #95 from appwrite/dev
Update attributes
2 parents 7145816 + 68639f9 commit 7a2418c

13 files changed

+78
-23
lines changed

docs/examples/databases/update-boolean-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ const result = await databases.updateBooleanAttribute(
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
1414
false, // required
15-
false // default
15+
false, // default
16+
'' // newKey (optional)
1617
);

docs/examples/databases/update-datetime-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ const result = await databases.updateDatetimeAttribute(
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
1414
false, // required
15-
'' // default
15+
'', // default
16+
'' // newKey (optional)
1617
);

docs/examples/databases/update-email-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ const result = await databases.updateEmailAttribute(
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
1414
false, // required
15-
'email@example.com' // default
15+
'email@example.com', // default
16+
'' // newKey (optional)
1617
);

docs/examples/databases/update-enum-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ const result = await databases.updateEnumAttribute(
1313
'', // key
1414
[], // elements
1515
false, // required
16-
'<DEFAULT>' // default
16+
'<DEFAULT>', // default
17+
'' // newKey (optional)
1718
);

docs/examples/databases/update-float-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ const result = await databases.updateFloatAttribute(
1414
false, // required
1515
null, // min
1616
null, // max
17-
null // default
17+
null, // default
18+
'' // newKey (optional)
1819
);

docs/examples/databases/update-integer-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ const result = await databases.updateIntegerAttribute(
1414
false, // required
1515
null, // min
1616
null, // max
17-
null // default
17+
null, // default
18+
'' // newKey (optional)
1819
);

docs/examples/databases/update-ip-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ const result = await databases.updateIpAttribute(
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
1414
false, // required
15-
'' // default
15+
'', // default
16+
'' // newKey (optional)
1617
);

docs/examples/databases/update-relationship-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ const result = await databases.updateRelationshipAttribute(
1111
'<DATABASE_ID>', // databaseId
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
14-
sdk.RelationMutate.Cascade // onDelete (optional)
14+
sdk.RelationMutate.Cascade, // onDelete (optional)
15+
'' // newKey (optional)
1516
);

docs/examples/databases/update-string-attribute.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ const result = await databases.updateStringAttribute(
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
1414
false, // required
15-
'<DEFAULT>' // default
15+
'<DEFAULT>', // default
16+
null, // size (optional)
17+
'' // newKey (optional)
1618
);

docs/examples/databases/update-url-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ const result = await databases.updateUrlAttribute(
1212
'<COLLECTION_ID>', // collectionId
1313
'', // key
1414
false, // required
15-
'https://example.com' // default
15+
'https://example.com', // default
16+
'' // newKey (optional)
1617
);

0 commit comments

Comments
 (0)