Skip to content

Commit c432f32

Browse files
authored
Merge pull request #180 from Shopify/fulfillment-constraints-function-template
Add `fulfillment_constraints` function template
2 parents f3f9531 + 757c62f commit c432f32

File tree

8 files changed

+3245
-0
lines changed

8 files changed

+3245
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
Cargo.lock
3+
.output.graphql
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[package]
2+
name = "{{name | replace: " ", "-" | downcase}}"
3+
version = "1.0.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
serde = { version = "1.0.13", features = ["derive"] }
8+
serde_json = "1.0"
9+
shopify_function = { version = "0.2.4" }
10+
graphql_client = { version = "0.12.0" }
11+
12+
[profile.release]
13+
lto = true
14+
opt-level = 'z'
15+
strip = true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
query Input {
2+
cart {
3+
deliverableLines {
4+
id
5+
}
6+
}
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"schemaVersions":{"fulfillment_constraints":{"major":1,"minor":0}}}

0 commit comments

Comments
 (0)