Skip to content

Commit 12d57e9

Browse files
authored
Merge pull request #44 from appwrite/codex/remove-1-9-atomic-create-params-from-1-8-specs
[codex] Remove 1.9 atomic create params from 1.8 specs
2 parents bd8ee02 + cd62f52 commit 12d57e9

30 files changed

Lines changed: 21 additions & 209 deletions

File tree

examples/1.8.x/console-web/examples/databases/create-collection.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const result = await databases.createCollection({
1313
name: '<NAME>',
1414
permissions: [Permission.read(Role.any())], // optional
1515
documentSecurity: false, // optional
16-
enabled: false, // optional
17-
attributes: [], // optional
18-
indexes: [] // optional
16+
enabled: false // optional
1917
});
2018

2119
console.log(result);

examples/1.8.x/console-web/examples/tablesdb/create-table.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ const result = await tablesDB.createTable({
1313
name: '<NAME>',
1414
permissions: [Permission.read(Role.any())], // optional
1515
rowSecurity: false, // optional
16-
enabled: false, // optional
17-
columns: [], // optional
18-
indexes: [] // optional
16+
enabled: false // optional
1917
});
2018

2119
console.log(result);

examples/1.8.x/server-dart/examples/databases/create-collection.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ Collection result = await databases.createCollection(
1717
permissions: [Permission.read(Role.any())], // (optional)
1818
documentSecurity: false, // (optional)
1919
enabled: false, // (optional)
20-
attributes: [], // (optional)
21-
indexes: [], // (optional)
2220
);
2321
```

examples/1.8.x/server-dart/examples/tablesdb/create-table.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ Table result = await tablesDB.createTable(
1717
permissions: [Permission.read(Role.any())], // (optional)
1818
rowSecurity: false, // (optional)
1919
enabled: false, // (optional)
20-
columns: [], // (optional)
21-
indexes: [], // (optional)
2220
);
2321
```

examples/1.8.x/server-dotnet/examples/databases/create-collection.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ Collection result = await databases.CreateCollection(
1616
name: "<NAME>",
1717
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
1818
documentSecurity: false, // optional
19-
enabled: false, // optional
20-
attributes: new List<object>(), // optional
21-
indexes: new List<object>() // optional
19+
enabled: false // optional
2220
);```

examples/1.8.x/server-dotnet/examples/tablesdb/create-table.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ Table result = await tablesDB.CreateTable(
1616
name: "<NAME>",
1717
permissions: new List<string> { Permission.Read(Role.Any()) }, // optional
1818
rowSecurity: false, // optional
19-
enabled: false, // optional
20-
columns: new List<object>(), // optional
21-
indexes: new List<object>() // optional
19+
enabled: false // optional
2220
);```

examples/1.8.x/server-go/examples/databases/create-collection.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ response, error := service.CreateCollection(
2222
databases.WithCreateCollectionPermissions(interface{}{"read("any")"}),
2323
databases.WithCreateCollectionDocumentSecurity(false),
2424
databases.WithCreateCollectionEnabled(false),
25-
databases.WithCreateCollectionAttributes([]interface{}{}),
26-
databases.WithCreateCollectionIndexes([]interface{}{}),
2725
)
2826
```

examples/1.8.x/server-go/examples/tablesdb/create-table.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,5 @@ response, error := service.CreateTable(
2222
tablesdb.WithCreateTablePermissions(interface{}{"read("any")"}),
2323
tablesdb.WithCreateTableRowSecurity(false),
2424
tablesdb.WithCreateTableEnabled(false),
25-
tablesdb.WithCreateTableColumns([]interface{}{}),
26-
tablesdb.WithCreateTableIndexes([]interface{}{}),
2725
)
2826
```

examples/1.8.x/server-graphql/examples/databases/create-collection.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ mutation {
66
name: "<NAME>",
77
permissions: ["read("any")"],
88
documentSecurity: false,
9-
enabled: false,
10-
attributes: [],
11-
indexes: []
9+
enabled: false
1210
) {
1311
_id
1412
_createdAt

examples/1.8.x/server-graphql/examples/tablesdb/create-table.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ mutation {
66
name: "<NAME>",
77
permissions: ["read("any")"],
88
rowSecurity: false,
9-
enabled: false,
10-
columns: [],
11-
indexes: []
9+
enabled: false
1210
) {
1311
_id
1412
_createdAt

0 commit comments

Comments
 (0)