Skip to main content

questionnaires

This query fetches a collection of questionnaires that match the supplied search criteria. Prefer cursorPagination for large result sets (for example sync/export); deep offset pages remain expensive even with indexes. Existing pagination: { page, pageSize } behaviour is unchanged. Do not provide pagination and cursorPagination together.

questionnaires(
pagination: Pagination
cursorPagination: CursorPagination
options: QuestionnairesQueryOptions
): QuestionnaireData

Arguments

questionnaires.pagination ● Pagination input

questionnaires.cursorPagination ● CursorPagination input

Cursor-based pagination alternative to pagination. Mutually exclusive with pagination. Use the last questionnaire's id as cursor for the next page. Results are always ordered by _id ascending for NEXT (and descending then reversed for PREVIOUS).

questionnaires.options ● QuestionnairesQueryOptions input

Type

QuestionnaireData object

A collection of questionnaire data and how this data are paginated. With offset pagination, pageInfo is a standard PageInfo. With cursorPagination, pageInfo uses the PageInfoForCursorPagination shape (pageSize and hasMore only; page is unset).