Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support using a @tag value defined inside a @fold #130

Open
obi1kenobi opened this issue Jan 20, 2023 · 0 comments
Open

Support using a @tag value defined inside a @fold #130

obi1kenobi opened this issue Jan 20, 2023 · 0 comments
Labels
A-syntax Area: query or schema syntax C-feature-request Category: request for new future functionality E-help-wanted Call for participation: help is requested to fix this issue. E-medium Call for participation: experience needed to fix: medium / intermediate E-mentor Call for participation: mentorship is available for this issue.

Comments

@obi1kenobi
Copy link
Owner

The systematic solution for this requires support for exporting @tag values across @fold boundaries, to allow a query structure like:

{
  baseline {
    item {
      importable_path @fold {
        name @tag(name: "paths")
      }
    }    
  }
  current {
    item {
      importable_path @fold @transform(op: "count") @filter(op: ">", value: ["$zero"]) {
        name @filter(op: "one_of", value: ["$paths"])
      }
    }
  }
}

In this query, the tagged paths value at the point of use is of type [String!]! because it is folded over before being used. Inside its own @fold scope, the tagged value is of type String! as normal.

Originally posted by @obi1kenobi in obi1kenobi/cargo-semver-checks#277 (comment)

@obi1kenobi obi1kenobi added A-syntax Area: query or schema syntax C-feature-request Category: request for new future functionality E-help-wanted Call for participation: help is requested to fix this issue. E-mentor Call for participation: mentorship is available for this issue. E-medium Call for participation: experience needed to fix: medium / intermediate labels Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-syntax Area: query or schema syntax C-feature-request Category: request for new future functionality E-help-wanted Call for participation: help is requested to fix this issue. E-medium Call for participation: experience needed to fix: medium / intermediate E-mentor Call for participation: mentorship is available for this issue.
Projects
None yet
Development

No branches or pull requests

1 participant