I need to be able to add recurring inputs for up to year. I have previously done this without Appwrite like this:
TypeScript
if (isRecurring && recurringInterval === "monthly") {
for (let i = 1; i <= 11; i++) {
const nextMonth = new Date(startDate);
nextMonth.setMonth(nextMonth.getMonth() + i);
await JointIncome.create({
joint: id,
description,
amount,
date: nextMonth,
isRecurring,
recurringInterval,
recurringStartDate: startDate,
});
}
}
How would I do this with Appwrite?
TL;DR
Developers want to add recurring entries for up to a year using Appwrite. To achieve this, you can utilize the Appwrite Collections feature to store the recurring inputs. Implement a similar loop structure within your Appwrite script to create entries for each month in the upcoming year.Recommended threads
- Empty listRows() response
Hi there, I'm shehryar, I'm new to react native and appwrite as well, I'm following a tutorial, what's surprising is the listRows({databaseId, tableId, queries}...
- Skip total counts crash the query
Hello, When adding the total parameter (either true, the default, or false) to the listRows function, it raises the following error: `type 'bool' is not a sub...
- Current User Is Not Authorized To Perfor...
I keep getting an error saying the current user is not authorized to perform the requested action, when I'm trying to create a row a table. Permissions have bee...