Skip to content

Commit 38c256e

Browse files
authored
Merge pull request #45 from Shopify/dphm-patch-1
Fix copypasta example_with_targets README.md
2 parents a33f948 + e8bb42e commit 38c256e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

example_with_targets/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ input FunctionTargetBResult {
6868
[[targeting]]
6969
target = "example.target-a"
7070
input_query = "a.graphql"
71+
export = "target_a"
7172

7273
[[targeting]]
7374
target = "example.target-b"
@@ -77,7 +78,7 @@ export = "function_b"
7778

7879
- `target`: the API-specific handle for the target implemented by the Wasm function
7980
- `input_query`: the path to the target-specific input query file
80-
- `export` (optional): the name of the function to export to Wasm
81+
- `export` (optional): the name of the Wasm function export to run
8182
- default: the target handle as `snake_case`
8283

8384
## `shopify_function_target` usage
@@ -139,7 +140,7 @@ Each target will have an `.output.graphql` file prefixed with the target handle
139140
Target handle (`snake_case`) | Output file | GraphQL mutation
140141
-- | -- | --
141142
`target_a` | `.target_a.output.graphql` | `mutation Output($result: FunctionTargetAResult!) { targetA(result: $result) }`
142-
`target_b` | `.target_a.output.graphql` | `mutation Output($result: FunctionTargetBResult!) { targetB(result: $result) }`
143+
`target_b` | `.target_b.output.graphql` | `mutation Output($result: FunctionTargetBResult!) { targetB(result: $result) }`
143144

144145
If the Rust function name does not match the target handle as `snake_case`, the `target` argument must be provided to `shopify_function_target` to generate the `output` types.
145146

0 commit comments

Comments
 (0)