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

12.0.9 breaking schema generation of DateTime DateTimeISO #3032

Closed
2 of 4 tasks
sschneider-ihre-pvs opened this issue Oct 23, 2023 · 1 comment
Closed
2 of 4 tasks

Comments

@sschneider-ihre-pvs
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When trying to start a graphql server with nest I know get the following error

Error: Schema must contain uniquely named types but contains multiple types named "DateTimeISO".
at new GraphQLSchema (<ProjectRoot>\node_modules\graphql\type\schema.js:219:15)
at mapSchema (<ProjectRoot>\node_modules\@nestjs\graphql\node_modules\@graphql-tools\utils\cjs\mapSchema.js:14:12)
at createNewSchemaWithResolvers (<ProjectRoot>\node_modules\@nestjs\graphql\node_modules\@graphql-tools\schema\cjs\addResolversToSchema.js:191:36)

Minimum reproduction code

null

Steps to reproduce

  1. add graphql scalars datetime: datetimeisoresolver
  2. try to start nest app

Expected behavior

Startup and Schema works as before

Package version

12.0.9

Graphql version

graphql:
apollo-server-express:
apollo-server-fastify:

NestJS version

No response

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@kamilmysliwiec
Copy link
Member

Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants