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

@relay(plural: true) prevents @connection helpers from being generated #460

Closed
sgrove opened this issue Aug 6, 2023 · 0 comments
Closed

Comments

@sgrove
Copy link

sgrove commented Aug 6, 2023

e.g. this module will generate BlockFragment.getConnectionNodes:

module BlockFragment = %relay(`
  fragment CanvasLayout_block on Block {
    camelCaseName
    description
    title
    dependencies(first: 100) @connection(key: "CanvasLayout_block_dependencies") {
      edges {
        node {
          dependency {
            ... on Node {
              id
            }
          }
        }
      }
    }
  }
`)

While this one will not:

module BlockFragment = %relay(`
  fragment CanvasLayout_block on Block @relay(plural: true) {
    camelCaseName
    description
    title
    dependencies(first: 100) @connection(key: "CanvasLayout_block_dependencies") {
      edges {
        node {
          dependency {
            ... on Node {
              id
            }
          }
        }
      }
    }
  }
`)
@zth zth closed this as completed Jan 19, 2024
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

No branches or pull requests

2 participants