File tree 2 files changed +9
-9
lines changed
src/main/kotlin/io/appwrite/services
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ class Database(private val client: Client) : BaseService(client) {
222
222
* directly from your database console.
223
223
*
224
224
* @param collectionId
225
- * @param xdata
225
+ * @param data
226
226
* @param read
227
227
* @param write
228
228
* @param parentDocument
@@ -234,7 +234,7 @@ class Database(private val client: Client) : BaseService(client) {
234
234
@Throws(AppwriteException ::class )
235
235
suspend fun createDocument (
236
236
collectionId : String ,
237
- xdata : Any ,
237
+ data : Any ,
238
238
read : List <Any >? = null,
239
239
write : List <Any >? = null,
240
240
parentDocument : String? = null,
@@ -243,7 +243,7 @@ class Database(private val client: Client) : BaseService(client) {
243
243
): Response {
244
244
val path = " /database/collections/{collectionId}/documents" .replace(" {collectionId}" , collectionId)
245
245
val params = mapOf<String , Any ?>(
246
- " data" to xdata ,
246
+ " data" to data ,
247
247
" read" to read,
248
248
" write" to write,
249
249
" parentDocument" to parentDocument,
@@ -293,7 +293,7 @@ class Database(private val client: Client) : BaseService(client) {
293
293
*
294
294
* @param collectionId
295
295
* @param documentId
296
- * @param xdata
296
+ * @param data
297
297
* @param read
298
298
* @param write
299
299
* @return [Response]
@@ -303,13 +303,13 @@ class Database(private val client: Client) : BaseService(client) {
303
303
suspend fun updateDocument (
304
304
collectionId : String ,
305
305
documentId : String ,
306
- xdata : Any ,
306
+ data : Any ,
307
307
read : List <Any >? = null,
308
308
write : List <Any >? = null
309
309
): Response {
310
310
val path = " /database/collections/{collectionId}/documents/{documentId}" .replace(" {collectionId}" , collectionId).replace(" {documentId}" , documentId)
311
311
val params = mapOf<String , Any ?>(
312
- " data" to xdata ,
312
+ " data" to data ,
313
313
" read" to read,
314
314
" write" to write
315
315
)
Original file line number Diff line number Diff line change @@ -226,18 +226,18 @@ class Functions(private val client: Client) : BaseService(client) {
226
226
* function execution process will start asynchronously.
227
227
*
228
228
* @param functionId
229
- * @param xdata
229
+ * @param data
230
230
* @return [Response]
231
231
*/
232
232
@JvmOverloads
233
233
@Throws(AppwriteException ::class )
234
234
suspend fun createExecution (
235
235
functionId : String ,
236
- xdata : String? = null
236
+ data : String? = null
237
237
): Response {
238
238
val path = " /functions/{functionId}/executions" .replace(" {functionId}" , functionId)
239
239
val params = mapOf<String , Any ?>(
240
- " data" to xdata
240
+ " data" to data
241
241
)
242
242
243
243
val headers = mapOf (
You can’t perform that action at this time.
0 commit comments