shopify_draft_proxy/proxy/delivery_settings
Mirrors src/proxy/delivery-settings.ts.
Delivery settings are fully synthetic — the proxy never replays
upstream. Both root fields resolve to a fixed default object that
gets projected through the client’s selection set. This is the
smallest read-only domain handler in the codebase and exercises
the new project_graphql_object helper end to end.
Types
pub type DeliverySettingsError {
ParseFailed(root_field.RootFieldError)
}
Constructors
-
ParseFailed(root_field.RootFieldError)
Values
pub fn handle_delivery_settings_query(
document: String,
) -> Result(json.Json, DeliverySettingsError)
Handle a query operation against the delivery-settings surface.
Returns the projected JSON object; the dispatcher wraps it in a
{ data: … } envelope. Mirrors handleDeliverySettingsQuery.
pub fn process(
document: String,
) -> Result(json.Json, DeliverySettingsError)
Convenience: parse + handle + wrap, for the dispatcher.