Skip to main content

define_query

Function define_query 

Source
pub const fn define_query<A, C, R, T>(
    name: &'static str,
    body: fn(&A, &C) -> Query<R, T>,
) -> QueryDefinition<A, C, R, T>
Expand description

A named query: name in the TS registry, and the query body builds from the arguments and the client’s context.