You've just created a GraphQL API and are ready to test it. But where do you start? How do you know if it's working correctly?
Testing your API is...
For further actions, you may consider blocking this person and/or reporting abuse
Since you mentioned Postman, and few other alternatives for testing APIs, I'd like to suggest Hoppscotch - API request builder for web.
Hoppscotch is open source { free } alternative to Postman.
hoppscotch.io
hoppscotch / hoppscotch
๐ฝ Open source API development ecosystem - https://hoppscotch.io
Yes, that's actually really good. I used this a few times.
A couple of things I didnโt know that Iโve picked up over the last year.
I would compare GraphQL more to RPC than REST, but it has some elements of both (e.g. considering graph nodes as resources).
Other than that, though, yeah, that's pretty much the basics.
Iโve no comment about the design of the API as I know only REST and itโs constraints (for shame!) but I shall have to find the use cases for RPC. However my comment about OpenAPI in particular relates towards typed schema and standards (got to love standards, like the Amazon open api ecosystem of code generation tools, Iโve recently posted a few times about it), thanks for sharing your views and il go read now
It is really impossible to work with GraphQL on mobile phones without such tools, has anyone tried doing this from a browser? Making requests or exploring docs is very inconvenient, and even landscape mode doesnโt help.
Well as far as I have experienced the making request in browser sucks. It's because you have to write code in browser and sometimes you have to scroll. These things makes its harder to work on mobile browser. That's why Mobile app are the way to go. As far as the docs are concerned, I haven't had any problem with it so far on Mobile devices.
Postman recently has updated their support for GraphQL in their Client. Might be worth a check!
Have you had real experience with GraphQL?
Currently I am working on a side project with GraphQL so yeh I have a little bit of experience with GraphQL.
It would be interesting to see a post about your project, because it seems that you are very knowledgeable in GraphQL
I am working on a couple of projects right now. And yeah, sure when I'll finish my project I'll release a detailed post about How I made that same as How I Made My Portfolio with Next.js
Sounds good
Very helpful article, thanks for your efforts
It's always a pleasure :)
Nice post! Quickly tried sending some requests to GitHub GraphQL API, runs smoothly and is actually quite easy to use
Yes exactly, it's very simple to use.
By the way, I noticed that there are more and more mobile solutions for developers. Apparently people like to work directly from their smartphones.
Yeh exactly, the thing is you don't carry you laptop all the time (atleast I Don't carry) so when you need something done you think "I wish I could do this on my mobile phone"
Well that's my thoughts. I do many things from mobile such as writting this comment ๐
I'm quite surprised why nobody mention jupyter-notebook.
It is much more flexible than postman, it's great as documentation tool and it could be used for automated tests too.
I don't know...personally I don't like Jupyter-notebook. It could be very useful for many developer but I am not very attached to it. Well this is just applicable to me I guess.
Great post! The app you mentioned, API Tester, seems to be very useful for GraphQL๐๐ป
Yes, It's very useful and you can test REST API as well.
Thanks for sharing. GraphQL is new for me, you brings the overall view about its ecosystem
Thanks mate :)
It would be great if you write an article about testing GraphQL using the desktop tool with useful example
Added in todo list. โจ
Great post! If you could do one on WebSocket testing too, would be nice
Never say never โจ
It was a pleasure to read your post. Be cool if you compare GraphQL with other API Query Languages
That's actually I nice idea ๐ก thanks for this. I might make post on this.
๐๐ป