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

GraphQL voyager breaks with large schemas (only with mutations)

Open Saud-Ahmad opened this issue 4 years ago • 6 comments

When I try to switch queries to mutation GraphQL voyager with a schema that is about 400,000 lines long it breaks, (it just displays a blank screen). It seems though that this schema is just big enough to cause this issue. Can you fix this problem on online version ?

Saud-Ahmad avatar Aug 12 '21 17:08 Saud-Ahmad

When a schema loaded, Queries are fine

graph1

But when i switched to mutations

graph2

After few minutes display a blank screen

graph3

This is first time for me. I used this tool frequently, this is the best tool to understand and representation of GraphQL Schema. I have already put 200,000 lines of code but never got this error. Can you fix this online version of graphql voyager @IvanGoncharov ?

Saud-Ahmad avatar Aug 12 '21 19:08 Saud-Ahmad

Now I open console when i switch to mutations and then blank screen occur, got error.

graph_error

@IvanGoncharov

Saud-Ahmad avatar Aug 13 '21 00:08 Saud-Ahmad

can you fix this error on online version @IvanGoncharov @RomanHotsiy @knidarkness ?

Saud-Ahmad avatar Aug 14 '21 00:08 Saud-Ahmad

the way I see it you have two options-

  • break your schema in subdomains
  • try with another browser/OS
  • increase your machine memory Would recommend closing - as this is not an issue.

orefalo avatar Nov 30 '21 10:11 orefalo

We are also having this 'non-issue' ;) Is there a reason why ALLOW_MEMORY_GROWTH cannot be used? Can you point to the part of the project where this emscripten compilation is done?

flexiblefactory avatar Dec 02 '21 19:12 flexiblefactory

The issue seems to be coming from viz.js - it has a limit to 256mb. Looks like this fork https://github.com/aduh95/viz.js would solve the issue. as it has support for ALLOW_MEMORY_GROWTH

Now I am not sure what it will take to reimplement voyager around it.

orefalo avatar Dec 03 '21 19:12 orefalo