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

DUPLICATE_TYPE Error when using alongside WPGraphQL Upload #78

Open
blackge opened this issue Apr 21, 2021 · 4 comments
Open

DUPLICATE_TYPE Error when using alongside WPGraphQL Upload #78

blackge opened this issue Apr 21, 2021 · 4 comments

Comments

@blackge
Copy link

blackge commented Apr 21, 2021

When I have WPGraphQL Upload activated, I'm getting the following error. If I disable it, the error goes away.

  "type": "DUPLICATE_TYPE",
        "message": "You cannot register duplicate Types to the Schema. The Type 'Upload' already exists in the Schema. Make sure to give new Types a unique name.",
        "type_name": "Upload",
@renatonascalves
Copy link
Owner

That's tricky. It's likely that the core plugin, wp-graphql, will use this Upload type. Since this extension implementation currently doesn't support this plugin upload system, you need to remove it to use it. We don't support multipart upload currently.

But it is on the radar. :)

@blackge
Copy link
Author

blackge commented Apr 22, 2021

Thanks Renato. I'll have a think about what we need for our site. Do you want to leave this issue open?

@renatonascalves
Copy link
Owner

Yes! It's most likely I'll remove this custom type from this extension and use the one from the wp-graphql plugin when that happens.

@blackge
Copy link
Author

blackge commented Apr 22, 2021 via email

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

No branches or pull requests

2 participants