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

GraphQL client library recommendation for this project #99

Open
zackha opened this issue Aug 2, 2024 · 2 comments
Open

GraphQL client library recommendation for this project #99

zackha opened this issue Aug 2, 2024 · 2 comments
Labels
nuxt 2 Issues relating to the Nuxt 2 version of fuxt

Comments

@zackha
Copy link

zackha commented Aug 2, 2024

Hi @drewbaker,

Wouldn't it be better to use Diizzayy/nuxt-graphql-client instead of gomah/nuxt-graphql-request in this project?

Best regards,

@drewbaker
Copy link
Member

Currently this project is only Nuxt2, and I think Diizzayy's is Nuxt3 only. We have been working on Nuxt 3/4 version as we speak actually.

But I'm actually seriously considering dropping WP-GraphQL integration... It's just been terrible for performance (so expensive to host at scale) and stability problems have been huge for us. The Gutenberg blocks are very brittle, a small change in the data structure by WordPress and everything breaks... Really looking hard at just going back to vanilla WP-JSON API and a OpenAPI 3.x doc generator plugin. Curious what you think about that?

As for Dizzayy's client, I really like Diizzayy, he's actually helping us with our Nuxt3 migration work. But I like the raw nature of Gomah's plugin, it's very easy to tell what is going on. Diizzayy's GqlFunctions are a bit too magic for me, kind of requires you know whats going on to understand where all those functions are coming from... But Nuxt 3 has a lot of these magic imported functions so maybe I just have to get used to them...

@zackha
Copy link
Author

zackha commented Aug 3, 2024

Thank you very much for your response,

I use WP-GraphQL for WooCommerce, and as you mentioned, I have never used other APIs before. I am asking you this because I am working on a dynamic e-commerce project called nuxtcommerce.netlify.app, and I can't decide whether to use Diizzayy's or Gomah's.

Yes, as you said, a cheap hosting provider greatly affects performance on a large scale.

Diizzayy keeps his module constantly updated. I was using his other module, nuxt/apollo, but the new update caused different problems and it no longer works on it. On the other hand, it's uncertain whether Gomah will update his module or if it will stay as it is.

@drewbaker drewbaker added the nuxt 2 Issues relating to the Nuxt 2 version of fuxt label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nuxt 2 Issues relating to the Nuxt 2 version of fuxt
Projects
None yet
Development

No branches or pull requests

2 participants