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

Validate that @require is correctly processed on arguments in validation #98

Open
PascalSenn opened this issue Dec 31, 2024 · 1 comment · May be fixed by #100
Open

Validate that @require is correctly processed on arguments in validation #98

PascalSenn opened this issue Dec 31, 2024 · 1 comment · May be fixed by #100
Assignees

Comments

@PascalSenn
Copy link
Contributor

# Schema A

type Product {
    shippingCost(dimensions: Dimension): Float
}

# Schema B
type Product {
    shippingCost(dimensions: Dimension @require(fields: "width height")): Float
}

# Schema C

type Product {
    width: Int
    height: Int
}

# Composed Schema

type Product {
    width: Int
    height: Int
    shippingCost: Float
}

In case of

# Schema A

type Product {
    shippingCost(dimensions: Dimension!): Float
}

this would lead to a validation error

@PascalSenn
Copy link
Contributor Author

Closed by #100

@PascalSenn PascalSenn self-assigned this Jan 1, 2025
@PascalSenn PascalSenn linked a pull request Jan 1, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant