Back
Why are the newly released methods marked as deprecated? My Appwrite version is 19.
- 0
- Tools
- Databases
- General
- Web
TL;DR
Newly released methods are marked as deprecated due to a recommendation to use an updated implementation with object parameters instead of the previous method. The suggested implementation includes specifying database and table IDs along with row data.odd...there should be a comment with that too..
this is the full tooltip:
keep scrolling
I see this:
?
I understand that it is recommending me to implement the method like this:
TypeScript
const res = await tabelsDB.createRow({
databaseId: dbEnv,
tableId: reportsPostsCollEnv,
rowId: ID.unique(),
data: {
post_id: '12121212121212121212',
reason: 'BKBKBKBKB'
}
})
, however, in the docs, it is without the object parameter:
TypeScript
const promise = tablesDB.createRow(
'<DATABASE_ID>',
'<TABLE_ID>',
ID.unique(),
{}
);
@Steven
Recommended threads
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- trying to figure out how to activate my...
please help
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...