Invalid object name Subscription use .createSubscriptionType() instead #1210
-
Is there a way to get around the error of names conflicting for a
But this throws an error:
@pothos/core": "^3.41.0" if needed |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There isn't anything built into Pothos to work around this. Pothos doesn't currently support re-naming to root types (Query, Mutation, Subscription), which would be a prerequisite to removing that check. I would recommend avoiding using Subscription as the name in your graphql schema for something other than graphql subscriptions. The workaround would be to change the name on the built schema, but that's a pretty hacky solution |
Beta Was this translation helpful? Give feedback.
There isn't anything built into Pothos to work around this. Pothos doesn't currently support re-naming to root types (Query, Mutation, Subscription), which would be a prerequisite to removing that check.
I would recommend avoiding using Subscription as the name in your graphql schema for something other than graphql subscriptions.
The workaround would be to change the name on the built schema, but that's a pretty hacky solution