Shopify / Shopify/shopify-function-rust
Types for cart.lines not generated
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 47
- Forks
- 9
- Avg merge
- 1h 53m
- Merged PRs (30d)
- 2
Description
Types for cart.lines not generated
query Input {
deliveryCustomization {
metafield(namespace: "$app:checkout-delivery-by-product-data", key: "function-configuration") {
value
}
}
cart {
lines {
cost {
totalAmount {
amount
}
}
}
deliveryGroups {
deliveryOptions {
title
handle
}
}
}
}
IDE output:
It works fine if I change query_path and schema_path to like this: (Note missing ./ before file name)
generate_types!(
query_path = "input.graphql",
schema_path = "schema.graphql"
);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the generate_types! entry point and reproduce the issue with the shown query and schema paths, comparing paths with and without the leading ./ . Trace how those arguments resolve the GraphQL inputs; done when the cart.lines types are generated correctly for the documented paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100