"Maximum call stack size exceeded" when passing fragment arguments to `@include` or `@skip` directive
SeppahBaws opened this issue · comments
Seppe Dekeyser commented
Describe the bug
When passing a fragment's argument to an @include
or @skip
directive, houdini generate
throws an "❌ Maximum call stack size exceeded" error.
Simple example:
$: result = graphql(`
query UserDetailsWithBirthday {
user(id: "1", snapshot: "abc") {
name
...UserDetailsArguments @with(showBirthday: true)
}
}
`);
$: userDetails = fragment(
$result.data,
graphql(`
fragment UserDetailsArguments on User @arguments(showBirthday: { type: "Boolean!" }) {
id
birthDate @include(if: $showBirthday)
}
`)
);
Severity
serious, but I can work around it
Steps to Reproduce the Bug
- paste the example in a file
- run
houdini generate
- see error
Reproduction
Alec Aivazis commented
Thanks for the reproduction - looking into this now