HoudiniGraphql / houdini

The disappearing GraphQL framework

Home Page:http://www.houdinigraphql.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Maximum call stack size exceeded" when passing fragment arguments to `@include` or `@skip` directive

SeppahBaws opened this issue · comments

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

  1. paste the example in a file
  2. run houdini generate
  3. see error

Reproduction

SeppahBaws@baf8b47

Thanks for the reproduction - looking into this now