
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
- Unable to create push providers - FCM or...
Currently unable to create a push provider for FCM or APNS.... https://github.com/appwrite/console/issues/2045 When uploading a file... FCM = Valid file retu...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
