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
* @param {object} params.data - Document data as JSON object. Include all required attributes of the document to be created or updated.
3464
+
* @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>} params.data - Document data as JSON object. Include all required attributes of the document to be created or updated.
3465
3465
* @param {string[]} params.permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
3466
3466
* @throws {AppwriteException}
3467
3467
* @returns {Promise<Document>}
3468
3468
* @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.upsertRow` instead.
* Create or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
3473
3473
*
3474
3474
* @param {string} databaseId - Database ID.
3475
3475
* @param {string} collectionId - Collection ID.
3476
3476
* @param {string} documentId - Document ID.
3477
-
* @param {object} data - Document data as JSON object. Include all required attributes of the document to be created or updated.
3477
+
* @param {Document extends Models.DefaultDocument ? Partial<Models.Document> & Record<string, any> : Partial<Models.Document> & Partial<Omit<Document, keyof Models.Document>>} data - Document data as JSON object. Include all required attributes of the document to be created or updated.
3478
3478
* @param {string[]} permissions - An array of permissions strings. By default, the current permissions are inherited. [Learn more about permissions](https://appwrite.io/docs/permissions).
3479
3479
* @throws {AppwriteException}
3480
3480
* @returns {Promise<Document>}
3481
3481
* @deprecated Use the object parameter style method for a better developer experience.
0 commit comments