Arr

public struct Arr: Expr, AsJson, CustomStringConvertible

Represents an array in FaunaDB where its elements can be a primitive value or an expression to be evaluated.

Reference

For example:

// Using a primitive value
Arr(1, "Two", 3)

// Using a call to the `Time` function
Arr(Time("now"))
  • Declaration

    Swift

    public var description: String
  • Initializes a new Arr instance with the elements provided.

    Declaration

    Swift

    public init(_ elements: Expr?...)
  • Converts a primitive array to an Arr instance.

    Declaration

    Swift

    public init(wrap: [Expr?])