Skip to content

Instance Method

get(_:at:)

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

Discussion

let name = try req.query.get(String.self, at: ["user", "name"])