loading...

What do you think about GraphQL? Who's using it? Love it, hate it? Tell me why?

obinnaspeaks profile image Obinna Ekwuno ・1 min read

My story with learning and using GraphQL is a bittersweet one, I went from "What does this button do?" Alt Text to "WOOT WOOT"Alt Text

Why did you start using GraphQL? If you don't why not?

Discussion

pic
Editor guide
Collapse
tabithakavyu profile image
Thabitha Kavyu

I only came across GraphQL when I was looking at Gatsby. From the few interactions, it looked quite interesting for me because I think its pretty easy to understand though I dont know much about it. I promised myself that I will actually purpose to get into its depth and understand how it works. You can share any resources if you have.

Collapse
bradtaniguchi profile image
Brad

I haven't looked into it primarily because I'm worried about the learning curve and how much I'd get out of it for how much I'd have to put in.

Collapse
obinnaspeaks profile image
Obinna Ekwuno Author

What tools do you build with currently?

Collapse
bradtaniguchi profile image
Brad

If I was to use GraphQL I'd probably look into using it with Apollo+Angular and NestJS. Currently just build REST endpoints and NGRX is keeping everything pretty solid, hence why moving doesn't seem necessary.

Collapse
chema profile image
José María CL

I like it too much. I think we are faster when it's about basic crud operations. Also, it's easy to add resolvers for specific bussiness logic. The only thing I dont like too much is that it brigns us a lot of flexibility in the frontend, so we need to be careful to mantain a clean code and don't abuse service calls

Collapse
obinnaspeaks profile image
Obinna Ekwuno Author

oh, some would argue that the flexibility to the frontend is a good thing.

Collapse
segun98 profile image
Segun98

I love it! Fetching just what the user needs and nested queries are my favourite features. The typescript tools built around it is bliss, Graphql codegen for example.

Collapse
shadowtime2000 profile image
shadowtime2000

The only reason I have procrastinated in learning it is because I am not a fan of using a string for a graphql query in a function to call that query.

Collapse
shadowtime2000 profile image
shadowtime2000

An example being:

graphql`whatever graphql thing u wanna do here`
Enter fullscreen mode Exit fullscreen mode
Collapse
obinnaspeaks profile image
Obinna Ekwuno Author

oh, but then I would advocate that it's a small price to pay for the value you get back.