shopify_draft_proxy/proxy/events
The Shopify events API is read-only and the proxy never replays
upstream — it just returns empty connections and zero counts. This
keeps the captured no-data contract explicit: every recognised root
field maps to null, an empty connection, or a zero-count payload.
Types
Errors specific to the events handler. Currently just propagates upstream graphql parse errors — every other shape resolves to a JSON payload.
pub type EventsError {
ParseFailed(root_field.RootFieldError)
}
Constructors
-
ParseFailed(root_field.RootFieldError)
Values
pub fn handle_events_query(
document: String,
) -> Result(json.Json, EventsError)
Handle a query operation against the events surface. Returns a
JSON object suitable for embedding into a { data: … } envelope.
pub fn is_events_query_root(name: String) -> Bool
pub fn process(
document: String,
) -> Result(json.Json, EventsError)
Convenience: parse + handle + wrap, for the dispatcher.