graphql-js icon indicating copy to clipboard operation
graphql-js copied to clipboard

Add reference types

Open fersilva16 opened this issue 2 years ago • 3 comments

This pull request introduces string references for GraphQL types, which aims to solve the problem with circular dependency between types in multiple files. Here's an usage example:

type: new GraphQLNonNull(new GraphQLList(new GraphQLNonNull('User')))

This PR has only the implementation for output types for now.

I've also made a RFC repository with a patch and pratical examples for testing: https://github.com/fersilva16/graphql-refs-rfc

Contributions and feedback are welcome.

fersilva16 avatar Dec 10 '23 20:12 fersilva16

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: fersilva16 / name: Fernando Silva (602fe1c88cd6002bb182a5a4a0569702a1ea811b)

Deploy Preview for compassionate-pike-271cb3 ready!

Name Link
Latest commit 602fe1c88cd6002bb182a5a4a0569702a1ea811b
Latest deploy log https://app.netlify.com/sites/compassionate-pike-271cb3/deploys/65762522e405480008550690
Deploy Preview https://deploy-preview-3995--compassionate-pike-271cb3.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Dec 10 '23 20:12 netlify[bot]

How could we move forward with this pr?

daniloab avatar Aug 06 '24 12:08 daniloab