You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: library/src/main/java/io/appwrite/services/Databases.kt
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ class Databases : Service {
43
43
"content-type" to "application/json",
44
44
)
45
45
val converter: (Any) -> io.appwrite.models.DocumentList<T> = {
46
-
io.appwrite.models.DocumentList.from(map = it asMap<String, Any>, nestedType)
47
-
}
46
+
io.appwrite.models.DocumentList.from(map = it asMap<String, Any>, nestedType)
47
+
}
48
48
return client.call(
49
49
"GET",
50
50
path,
@@ -85,9 +85,9 @@ class Databases : Service {
85
85
*
86
86
* @param databaseId Database ID.
87
87
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
88
-
* @param documentId Document ID. Choose your own unique ID or pass the string `ID.unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
88
+
* @param documentId Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
89
89
* @param data Document data as JSON object.
90
-
* @param permissions An array of permissions strings. By defaultthe current user is granted with all permissions. [Learn more about permissions](/docs/permissions).
90
+
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](/docs/permissions).
91
91
* @return [io.appwrite.models.Document<T>]
92
92
*/
93
93
@JvmOverloads
@@ -112,8 +112,8 @@ class Databases : Service {
112
112
"content-type" to "application/json",
113
113
)
114
114
val converter: (Any) -> io.appwrite.models.Document<T> = {
115
-
io.appwrite.models.Document.from(map = it asMap<String, Any>, nestedType)
116
-
}
115
+
io.appwrite.models.Document.from(map = it asMap<String, Any>, nestedType)
116
+
}
117
117
return client.call(
118
118
"POST",
119
119
path,
@@ -131,9 +131,9 @@ class Databases : Service {
131
131
*
132
132
* @param databaseId Database ID.
133
133
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection). Make sure to define attributes before creating documents.
134
-
* @param documentId Document ID. Choose your own unique ID or pass the string `ID.unique()` to auto generate it. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
134
+
* @param documentId Document ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
135
135
* @param data Document data as JSON object.
136
-
* @param permissions An array of permissions strings. By defaultthe current user is granted with all permissions. [Learn more about permissions](/docs/permissions).
136
+
* @param permissions An array of permissions strings. By default, only the current user is granted all permissions. [Learn more about permissions](/docs/permissions).
137
137
* @return [io.appwrite.models.Document<T>]
138
138
*/
139
139
@JvmOverloads
@@ -180,8 +180,8 @@ class Databases : Service {
180
180
"content-type" to "application/json",
181
181
)
182
182
val converter: (Any) -> io.appwrite.models.Document<T> = {
183
-
io.appwrite.models.Document.from(map = it asMap<String, Any>, nestedType)
184
-
}
183
+
io.appwrite.models.Document.from(map = it asMap<String, Any>, nestedType)
184
+
}
185
185
return client.call(
186
186
"GET",
187
187
path,
@@ -223,7 +223,7 @@ class Databases : Service {
223
223
* @param collectionId Collection ID.
224
224
* @param documentId Document ID.
225
225
* @param data Document data as JSON object. Include only attribute and value pairs to be updated.
226
-
* @param permissions An array of permissions strings. By default the current permissions are inherited. [Learn more about permissions](/docs/permissions).
226
+
* @param permissions An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](/docs/permissions).
227
227
* @return [io.appwrite.models.Document<T>]
228
228
*/
229
229
@JvmOverloads
@@ -248,8 +248,8 @@ class Databases : Service {
248
248
"content-type" to "application/json",
249
249
)
250
250
val converter: (Any) -> io.appwrite.models.Document<T> = {
251
-
io.appwrite.models.Document.from(map = it asMap<String, Any>, nestedType)
252
-
}
251
+
io.appwrite.models.Document.from(map = it asMap<String, Any>, nestedType)
252
+
}
253
253
return client.call(
254
254
"PATCH",
255
255
path,
@@ -269,7 +269,7 @@ class Databases : Service {
269
269
* @param collectionId Collection ID.
270
270
* @param documentId Document ID.
271
271
* @param data Document data as JSON object. Include only attribute and value pairs to be updated.
272
-
* @param permissions An array of permissions strings. By default the current permissions are inherited. [Learn more about permissions](/docs/permissions).
272
+
* @param permissions An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](/docs/permissions).
0 commit comments