Calendar

Description: The calendar object is a collection of events. Most users use it's id property to map to their own user store.

Fields#


id
unique id optionally assigned during createOrUpdateCalendar.

owner
You the account holder is the owner.

events
This list of events will only contains events that this calendar has either created or accepted. Invited and declined events will show up in the lists below.

acceptedEvents
This list of events will only contains events that this calendar has accepted using accept-invite

createdEvents
This list of events will only contains events that this calendar created using create-or-update-event

declinedEvents
This list of events will only contains events that this calendar was invited to but declined using decline-invite

invitedEvents
This list of events will only contains events that this calendar was invited to but not accepted or declined.

events_between
(startAt), (endAt)
Easy way to get events between 2 dates if you don't prefer to use the filter way.

events_withinDays
(count)
Easy way to get events within the next few days. Note: count is optional and defaults to 7 days.

Associated Mutations#

Examples#

return the dates and state of all events associated with this calendar.
query{
Calendar(id:"calendarId"){
events{
state(calendarId:"calendarId")
title
startAt{
formatted
}
endAt{
year
month
day
hour
minute
}
}
}
}