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
- log out failure
I am trying to set up the user sign up/log in/log out and while I have got the sign up/log in to work, log out keeps failing. i am keeping it simple with only r...
- Column size update error – "Invalid inde...
Hey everyone, I’m running into an issue when trying to update the size of an existing column in my Appwrite database. I’m trying to change the size from 30 to 5...
- Use queries on relationships other than ...
Can I use queries other than Query.select on relationships such as Query.equal('relationship.someattr', 'value')?