Contents

init(sortDescriptors:predicate:limit:offset:)

Creates a new transaction query with the provided sort descriptors, predicate, and limit on the number of records the query should return.

Declaration

init(sortDescriptors: [SortDescriptor<Transaction>] = [], predicate: Predicate<Transaction>? = nil, limit: Int? = nil, offset: Int? = nil)

Parameters

  • sortDescriptors:

    An array of Transaction sort descriptors.

  • predicate:

    A Predicate to filter the Transaction records with.

  • limit:

    An integer that indicates the maximum number of Transaction records to return.

  • offset:

    An integer that indicates the number of records to offset the result by.