QueryParams
public struct QueryParams: Encodable
Data type to specify filters for querying records
-
Initializer to specify filters for querying records
Declaration
Swift
public init( count: Int? = nil, includeData: Bool? = nil, writerIds: [UUID]? = nil, userIds: [UUID]? = nil, recordIds: [UUID]? = nil, types: [String]? = nil, after: Double? = nil, includeAllWriters: Bool? = nil )Parameters
countLimit the number of records returned by the query beyond the E3db default
includeDataSupply the full decrypted record set in the results
writerIdsFilter to records written by these IDs
userIdsFilter to records with these user IDs
recordIdsFilter to only the records identified by these IDs
contentTypesFilter to records that match the given types
afterNumber to facilitate paging the results – used with the
lastproperty of theQueryResponseincludeAllWritersSet this flag to include records that have been shared with you, defaults to
false -
Advance the query beyond the given value, leaving other parameters unchanged.
Declaration
Swift
public func next(after: Double) -> QueryParamsParameters
afterThe value to start the results query
Return Value
A new
QueryParamsobject initialized with existing parameters and a new starting value -
Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
QueryParams Structure Reference