https://github.com/schickling/relay-compiler-bug
Minimal reproduction of the recursive input type bug in relay-compiler
https://github.com/schickling/relay-compiler-bug
Last synced: over 1 year ago
JSON representation
Minimal reproduction of the recursive input type bug in relay-compiler
- Host: GitHub
- URL: https://github.com/schickling/relay-compiler-bug
- Owner: schickling
- Created: 2017-08-21T21:56:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T21:57:02.000Z (almost 9 years ago)
- Last Synced: 2025-02-03T21:53:47.025Z (over 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# relay-compiler: Recursive Input Bug
## How to reproduce
```
# install relay-compiler
yarn
# compile relay
yarn relay
```
## Problematic input type
```
input CreateTestInput {
testField: String!
test: CreateTestInput
clientMutationId: String!
}
```
## Output
```
yarn relay v0.28.1
$ relay-compiler --src ./src --schema ./schema.graphql
HINT: pass --watch to keep watching for changes.
Parsed default in 0.01s
Writing default
Error writing modules:
RangeError: Maximum call stack size exceeded
Unchanged: 0 files
Written default in 0.41s
✨ Done in 1.90s.
```