Skip to content

Instance Method

get(_:at:)

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

Discussion

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