Parameters

public struct Parameters : Sendable

The parameters for a Request.

  • Fields to return for included related types.

    Declaration

    Swift

    public let fields: [FieldParameter]?
  • Attributes, relationships, and IDs by which to filter

    Declaration

    Swift

    public let filters: [FilterParameter]?
  • Attributes, relationships, and IDs to check for existence

    Declaration

    Swift

    public let exists: [ExistParameter]?
  • Relationship data to include in the response

    Declaration

    Swift

    public let includes: [IncludeParameter]?
  • Attributes by which to sort

    Declaration

    Swift

    public let sorts: [SortParameter]?
  • Number of resources to return

    Declaration

    Swift

    public let limits: [LimitParameter]?
  • Number of resources to return

    Declaration

    Swift

    public let limit: Int?
  • Custom parameters for an operation

    Declaration

    Swift

    public let customs: [String : String]?
  • Create a new Parameters with the specified parameters.

    Declaration

    Swift

    public init(fields: [FieldParameter]? = nil,
                filters: [FilterParameter]? = nil,
                exists: [ExistParameter]? = nil,
                includes: [IncludeParameter]? = nil,
                sorts: [SortParameter]? = nil,
                limits: [LimitParameter]? = nil,
                limit: Int? = nil,
                customs: [String: String]? = nil)

    Parameters

    fields

    Fields to return for included related types.

    filters

    Attributes, relationships, and IDs by which to filter

    exists

    Attributes, relationships, and IDs to check for existence

    includes

    Relationship data to include in the response

    sorts

    Attributes by which to sort

    limits

    Number of resources to return

    limit

    Number of resources to return

    customs

    Custom parameters for an operation