Urigo / SOFA

The best way to create REST APIs - Generate RESTful APIs from your GraphQL Server

Home Page:https://www.the-guild.dev/graphql/sofa-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How should I handle big schema?

josephj opened this issue · comments

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