Skip to content

When I try to use a resolver, I receive the error 'Second definition of mutation(...) (Types::MutationType) is invalid, already configured with Types::MutationType.' #4690

Answered by rmosolgo
kaku0225 asked this question in Q&A

You must be logged in to vote

Thanks for sharing -- I wouldn't be surprised if some of those other error messages are really the underlying cause. For example, Rails might start loading the schema .rb file, but then encounter an error part-way through and stop loading it. In that case, it would be partially loaded: the schema class would be defined, but since Rails didn't finish loading it, then Rails would try again, causing this error.

I suggest stopping the development server, then starting it again (to make sure that nothing is loaded yet), then replicating this error. After that, scroll back to the start of the server logs and find the first error message. Hopefully addressing that error will make things work bet…

Replies: 2 comments 2 replies

You must be logged in to vote
0 replies

You must be logged in to vote
2 replies
@rmosolgo

Answer selected by kaku0225
@kaku0225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants