Skip to main content

mapRecurringInstanceToEvent

API Docs


Function: mapRecurringInstanceToEvent()

mapRecurringInstanceToEvent(instance): EventWithAttachments

Defined in: src/graphql/utils/mapRecurringInstanceToEvent.ts:11

Maps a recurring event instance to the internal unified EventWithAttachments format. This is used to treat materialized instances like regular events in queries.

Parameters

instance

ResolvedRecurringEventInstance

The raw recurring event instance

Returns

EventWithAttachments

The instance mapped to an EventWithAttachments structure