renatonascalves / wp-graphql-buddypress

Bringing the power of GraphQL to BuddyPress.
https://wordpress.org/plugins/wp-graphql-buddypress
GNU General Public License v3.0
35 stars 11 forks source link

DUPLICATE_TYPE Error when using alongside WPGraphQL Upload #78

Open blackge opened 3 years ago

blackge commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

renatonascalves commented 3 years ago

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 commented 3 years ago

Good plan!

On Thu, 22 Apr 2021 at 14:01, Renato Alves @.***> wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/wp-graphql/wp-graphql-buddypress/issues/78#issuecomment-824820997, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBR7MZD2Z4ROVIP46B7SU3TKAM4HANCNFSM43KZH5EA .