File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/main/kotlin/io/appwrite/services Expand file tree Collapse file tree 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) {
222222 * directly from your database console.
223223 *
224224 * @param collectionId
225- * @param xdata
225+ * @param data
226226 * @param read
227227 * @param write
228228 * @param parentDocument
@@ -234,7 +234,7 @@ class Database(private val client: Client) : BaseService(client) {
234234 @Throws(AppwriteException ::class )
235235 suspend fun createDocument (
236236 collectionId : String ,
237- xdata : Any ,
237+ data : Any ,
238238 read : List <Any >? = null,
239239 write : List <Any >? = null,
240240 parentDocument : String? = null,
@@ -243,7 +243,7 @@ class Database(private val client: Client) : BaseService(client) {
243243 ): Response {
244244 val path = " /database/collections/{collectionId}/documents" .replace(" {collectionId}" , collectionId)
245245 val params = mapOf<String , Any ?>(
246- " data" to xdata ,
246+ " data" to data ,
247247 " read" to read,
248248 " write" to write,
249249 " parentDocument" to parentDocument,
@@ -293,7 +293,7 @@ class Database(private val client: Client) : BaseService(client) {
293293 *
294294 * @param collectionId
295295 * @param documentId
296- * @param xdata
296+ * @param data
297297 * @param read
298298 * @param write
299299 * @return [Response]
@@ -303,13 +303,13 @@ class Database(private val client: Client) : BaseService(client) {
303303 suspend fun updateDocument (
304304 collectionId : String ,
305305 documentId : String ,
306- xdata : Any ,
306+ data : Any ,
307307 read : List <Any >? = null,
308308 write : List <Any >? = null
309309 ): Response {
310310 val path = " /database/collections/{collectionId}/documents/{documentId}" .replace(" {collectionId}" , collectionId).replace(" {documentId}" , documentId)
311311 val params = mapOf<String , Any ?>(
312- " data" to xdata ,
312+ " data" to data ,
313313 " read" to read,
314314 " write" to write
315315 )
Original file line number Diff line number Diff line change @@ -226,18 +226,18 @@ class Functions(private val client: Client) : BaseService(client) {
226226 * function execution process will start asynchronously.
227227 *
228228 * @param functionId
229- * @param xdata
229+ * @param data
230230 * @return [Response]
231231 */
232232 @JvmOverloads
233233 @Throws(AppwriteException ::class )
234234 suspend fun createExecution (
235235 functionId : String ,
236- xdata : String? = null
236+ data : String? = null
237237 ): Response {
238238 val path = " /functions/{functionId}/executions" .replace(" {functionId}" , functionId)
239239 val params = mapOf<String , Any ?>(
240- " data" to xdata
240+ " data" to data
241241 )
242242
243243 val headers = mapOf (
You can’t perform that action at this time.
0 commit comments