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

How should I handle big schema? #1407

Open
josephj opened this issue Dec 6, 2023 · 0 comments
Open

How should I handle big schema? #1407

josephj opened this issue Dec 6, 2023 · 0 comments

Comments

@josephj
Copy link

josephj commented Dec 6, 2023

I haven't figure out how to resolve this issue yet.

This libaray works fine when the schema is not too big. However, when I try to use a realworld schema it always fails at buildSchema. My schema is 444KB with 16K lines.

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

I do increase my memory to 8GB but it doesn't helps.

I am willing to make a simpler schema but it's also quite tricky to deal with the nested props and types. Any workaround or tools would be welcome

@josephj josephj changed the title How should I handle the big schema? How should I handle big schema? Dec 9, 2023
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

1 participant