Skip to main content
Version: 6.3

FindByCursorOptions <T, P, F, E>

Hierarchy

  • Omit<FindOptions<T, P, F, E>, limit | offset>
    • FindByCursorOptions

Index

Properties

optionalafter

after?: string | { endCursor: null | string } | FilterObject<T>

Fetch items after this cursor.

optionalbefore

before?: string | { startCursor: null | string } | FilterObject<T>

Fetch items before this cursor.

optionalcache

cache?: number | boolean | [string, number]

optionalcomments

comments?: string | string[]

sql only

optionalconnectionType

connectionType?: ConnectionType

optionalconvertCustomTypes

convertCustomTypes?: boolean

optionalctx

ctx?: any

optionaldisableIdentityMap

disableIdentityMap?: boolean

optionalexclude

exclude?: readonly AutoPath<T, E, never, 9>[]

optionalfields

fields?: readonly AutoPath<T, F, *, 9>[]

optionalfilters

filters?: FilterOptions

optionalfirst

first?: number

Fetch first N items.

optionalflags

flags?: QueryFlag[]

optionalflushMode

flushMode?: always | FlushMode | commit | auto

optionalgroupBy

groupBy?: string | string[]

sql only

optionalhaving

having?: QBFilterQuery<T>

optionalhintComments

hintComments?: string | string[]

sql only

optionalindexHint

indexHint?: string

sql only

optionallast

last?: number

Fetch last N items.

optionallockMode

lockMode?: NONE | PESSIMISTIC_READ | PESSIMISTIC_WRITE | PESSIMISTIC_PARTIAL_WRITE | PESSIMISTIC_WRITE_OR_FAIL | PESSIMISTIC_PARTIAL_READ | PESSIMISTIC_READ_OR_FAIL

sql only

optionallockTableAliases

lockTableAliases?: string[]

sql only

optionalloggerContext

loggerContext?: LogContext

optionallogging

logging?: LoggingOptions

optionalorderBy

orderBy?: OrderDefinition<T>

optionaloverfetch

overfetch?: boolean

Fetch one more item than first/last, enabled automatically in em.findByCursor to check if there is a next page.

optionalpopulate

populate?: Populate<T, P>

optionalpopulateOrderBy

populateOrderBy?: OrderDefinition<T>

optionalpopulateWhere

populateWhere?: PopulateHint | infer | all | ObjectQuery<T>

optionalrefresh

refresh?: boolean

optionalschema

schema?: string

optionalstrategy

strategy?: LoadStrategy | select-in | joined

sql only