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
- Appwrite - Github student plan payment
Even though I have the GitHub Student package, I received a notification saying I would be switched to a pay-as-you-go plan. (It said that I could use AppWrite ...
- SMS - Github Student Pack
I have a project on Appwrite Github Student Pack but unable to send any message as I get error: "Phone authentication limit for your organization has exceeded. ...
- Relationship data Not showing on update ...
Version : 1.9.0 OS/System : Windows10/Docker Database : MongoDB Clean Zero Installation The first thing I did in the testing process was create a category and...