MichalLytek / MichalLytek/typegraphql-prisma

Error while generating for big Prisma schema

Open
#10 19 comments 0 reactions 0 assignees View on GitHub
bug priority:low
Dominant language
TypeScript
Stars
918
Forks
130
PR merge metrics
No merged PRs in 30d

Description

I'm trying the generator with a large prisma schema (3200 lines).
Getting this RangeError: Maximum call stack size exceeded.

prisma generate runs in 1s without the typegraphql generator.

![image](https://user-images.githubusercontent.com/13395944/95556660-8d82a700-0a0b-11eb-9a19-428579da9cfd.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with the reported 3200-line Prisma schema, comparing `prisma generate` with and without the TypeGraphQL generator. Trace the generator entry point reached during generation and identify what causes the stack overflow; done means generation completes successfully for the large schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
backend-api-design, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.