Include

public struct Include : OptionSet

The Query.Include is parameter for including count, Unpublished, ContentType schema, Global Fields schema, and Reference ContentType Uid in result.

  • Creates a new option set from the given raw value.

    Declaration

    Swift

    public init(rawValue: Int)

    Parameters

    rawValue

    The raw value of the option set to create. Each bit of rawValue potentially represents an element of the Query.Include, though raw values may include bits that are not defined as distinct values of the Query.Include type.

  • Each bit of rawValue potentially represents an element of the option set

    Declaration

    Swift

    public let rawValue: Int
  • To include count in the response.

    Declaration

    Swift

    public static let count: Include
  • To include Unpublished Entries in response,

    Declaration

    Swift

    public static let unpublished: Include
  • To include ContentType schema in Entry response,

    Declaration

    Swift

    public static let contentType: Include
  • To include Global Fields schema in Entry response,

    Declaration

    Swift

    public static let globalField: Include
  • To include Reference ContentType Uid in reference field in Entry response,

    Declaration

    Swift

    public static let refContentTypeUID: Include
  • Retrieve the published content of the fallback locale if an entry is not localized in specified locale.

    Declaration

    Swift

    public static let fallback: Include
  • Include Embedded Objects (Entries and Assets) along with entry/entries details.

    Declaration

    Swift

    public static let embeddedItems: Include
  • all

    To inclide all Query.Include values.

    Declaration

    Swift

    public static let all: Include