Types for cart.lines not generated

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
graphql, rust
Domain
tooling

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.

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:
image

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"
);
Dominant language
Rust
Stars
47
Forks
9
Avg merge
1h 53m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Shopify/shopify-function-rust

All issues in Shopify/shopify-function-rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.