
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
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- Looking for Partner
I'm looking for a partner for long-term collaboration. Of course, you'll get paid for it. If you are interested, please send a DM to me
