Skip to content

Instance Subscript

subscript(_:at:)

Fetch a single Decodable value at the supplied keypath in the container.
subscript<D>(_: D.Type = D.self, at path: [any CodingKeyRepresentable]) -> D? where D : Decodable { get }

Overview

let name: String? = req.query[at: ["user", "name"]]