DEV Community

Discussion on: Do you prefer GraphQL over REST?

Collapse
 
bobbyiliev profile image
Bobby Iliev

REST is everywhere so I'm quite used to it. A few days ago I tried playing around with HashNode's GraphQL API and to be honest I struggled. To me, it looks like that the learning curve for GraphQL is much steeper, so I'm still a fan of good old REST!

Collapse
 
madza profile image
Madza

Hashnode's API was my first contact with it too 😃 I must say I love it and it reminds me of working with DOM in the browser 😉

Collapse
 
bobbyiliev profile image
Bobby Iliev

Nice! I actually got stuck with the new post creation, did you manage to get it to work?

Thread Thread
 
madza profile image
Madza

I was working with their API the other way around - for fetching data. But for posting, I believe you have to make a mutation, as shown in this example to create a new story.

For further assistance, I would recommend their Discord server. Together we already found a bug in their API by discussing particular ways of retrieving data.

Thread Thread
 
bobbyiliev profile image
Bobby Iliev

Thanks, sounds good! I will try it out! 🙌