Skip to content
Playground(another site)

bynk.types.request_query_at_boundary

Error RequestQuery appears where a value is stored or sent: a field of a type, or a boundary such as a call, a message or an agent.

RequestQuery is the raw view of one request's query string, the query parameter of a handler that reads keys it does not know in advance. It is read where the request arrives and then dropped: a copy kept or sent on would outlive the request. It is accepted only as an HTTP handler's query parameter, and refused as a record, sum or event field, an agent key or store field, a capability operation, or any other handler parameter or result. Read the value you need (query.get("q")) and keep that String.

Example

type Search = {
query: RequestQuery, // ✗ a request's query string is not data to keep
}
type Search = {
term: String, // ✓ keep the value you read
}

In the Book

See also

  • Every code in its category, Type checking, on the diagnostic index.
  • bynk explain bynk.types.request_query_at_boundary shows the same from the installed toolchain, without a network.