n8n-nodes-semble v2.1.0


n8n-nodes-semble / nodes/Semble/shared/BookingQueries / GET_BOOKINGS_QUERY

Variable: GET_BOOKINGS_QUERY

const GET_BOOKINGS_QUERY: "\n query GetBookings($pagination: Pagination, $options: QueryOptions, $dateRange: DateRange) {\n bookings(\n pagination: $pagination\n options: $options\n dateRange: $dateRange\n ) {\n data {\n \n id\n deleted\n cancellationReason\n doctorName\n start\n end\n createdAt\n updatedAt\n videoUrl\n comments\n reference\n billed\n patientId\n onlineBookingPaymentStatus\n patient {\n id\n firstName\n lastName\n email\n }\n location {\n id\n name\n }\n appointment {\n id\n title\n duration\n price\n }\n bookingJourney {\n arrived\n consultation\n departed\n dna\n }\n patientMessagesSent {\n confirmation\n reminder\n followup\n cancellation\n }\n\n }\n pageInfo {\n hasMore\n }\n }\n }\n"

Defined in: nodes/Semble/shared/BookingQueries.ts:161

GraphQL query for getting multiple bookings with pagination Example usage with the modular pagination system:

const paginationResult = await SemblePagination.execute(this, { query: GET_BOOKINGS_QUERY, baseVariables: { dateRange: { start: '2024-01-01', end: '2024-12-31' }, options: {} }, dataPath: 'bookings', pageSize: paginationConfig.pageSize, returnAll: paginationConfig.returnAll });