MCPcopy Create free account
hub / github.com/Shopify/function-examples / run

Function run

checkout/rust/cart-transform/bundles/src/run.rs:50–58  ·  view source on GitHub ↗
(input: input::ResponseData)

Source from the content-addressed store, hash-verified

48
49#[shopify_function_target(query_path = "src/run.graphql", schema_path = "schema.graphql")]
50fn run(input: input::ResponseData) -> Result<output::FunctionRunResult> {
51 let cart_operations: Vec<CartOperation> = get_merge_cart_operations(&input.cart)
52 .chain(get_expand_cart_operations(&input.cart))
53 .collect();
54
55 Ok(output::FunctionRunResult {
56 operations: cart_operations,
57 })
58}
59
60// merge operation logic
61

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected