//! Typed named queries and mutators, behind the `serde` feature: //! [`define_query`] and [`define_mutator`] (`defineQuery` in //! `packages/zql/src/query/query-registry.ts` and `defineMutator` in //! `packages/zql/src/mutate/mutator.ts`, shaped like the Swift client's). //! //! Each is defined once, by its name in the TS registry the server runs and //! a serde argument type, and called with a value of that type: the client //! sends the name and the arguments as JSON, as JS does, and reads them back //! as the type before a mutator's body runs. The context comes from the //! [`Zero`](crate::client::Zero) the request goes to. //! //! ``` //! # use zero_client::define::{MutatorDefinition, QueryDefinition, define_mutator, define_query}; //! # use zero_client::client::{Error, Transaction}; //! # use zero_client::typed::Query; //! # struct Label; //! # fn labels_query(project: &str) -> Query