-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
GraphQL voyager breaks with large schemas #129
Comments
@pmantica1 It's an issue with hardcoded buffer and stack size for graph rendering
If you have the possibility to build Voayger you can manually increase those hardcode values. |
Thank you very much for the info. I think the fix doesn't work for me. I tried increasing the memory multiplier from 16 to 128 and then following all of the commands in the README.md in the example directory. (I am using my own schema by just modifying the schema.js file in the example directory). |
@pmantica1 Did you increase both numbers? (the bigger one is heap size and smaller is stack size). Also, please check the browser console it can say what wrong. If it says that maximum call size exceeded that means you hit browser limitation on recursion and only our planned JS conversion to WASM can help. |
Yes I did increase both numbers. Will check. Thank you. |
@pmantica1 FYI i try schema with 1,172,059 lines and voyager parsed it correctly but will not show anything as rendering is too big for him. Small hack you can try limit how many nodes it is showing. in
It should render at least something. Navigation will be kind of broken but you can play with number of nodes and change |
So in light of this issue, have you considered changing the visualization library that you use, instead of |
When I try to use GraphQL voyager with a schema that is about 4500 lines long it breaks, (it just displays a blank screen). It seems though that this schema is just big enough to cause this issue. (If I only include half of the schema object types, it works out perfectly). Do you have any suggestions on how I could, (maybe temporarily), deal with this issue?
The text was updated successfully, but these errors were encountered: