Closed stevefan1999-personal closed 6 years ago
What exactly would you need to make this working correctly together? The possibility to pass a schema created beforehand?
@kamilmysliwiec Exactly! I tried to implement a quick fix with mergeSchemas
.
Just merged and published as 5.1.1
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm submitting a...
Current behavior
typePaths
is mandatory and dominant, without it on graphql.mergeTypes it will throw an error.Expected behavior
I should be able to use a pre-cooked schema out of the box.
Minimal reproduction of the problem with instructions
It failed with:
What is the motivation / use case for changing the behavior?
I used MagnusCloudCorp/nestjs-type-graphql instead of the helpers from
@nestjs/graphql
provided out of the box and TypeGraphQL provided a compiled schema instead of SDL.Environment
Extra info
This is the reason it failed: https://github.com/nestjs/graphql/blob/b58d3e50dc9672a1047ef192587849fbbfc42281/lib/graphql.factory.ts#L22-L37 My schema option, no matter what are always gonna be
Object.assign
'd