pub struct Face {
pub name: RustSafeName,
pub attrs: TokenStream,
}Expand description
One SCHEMA POSITION of one field: what it is CALLED there, and what rides on it verbatim.
The TYPE is not here and no longer can be. A position’s type used to be its own, and it made two
things spellable that must not be: an input form differing from the output form, which is a
schema a client has to read twice, and — through the per-position conversions that went with it —
a wire form reached from the DOMAIN rather than from the row a deployment actually stores. Both
live on GraphqlField now, the form once and the crossings per database.
Fields§
§name: RustSafeNameThe field’s name here: the SDL one is the external face, the Rust one the safe face.
attrs: TokenStreamattrs(…) — passed onto the emitted field verbatim. Descriptions live here and NOWHERE else:
a source /// comment never becomes a schema description, because publishing is deliberate.