DEV Community

Cover image for GraphQL is King
Mike Ralphson
Mike Ralphson

Posted on • Edited on

3

GraphQL is King

To the tune of "Rock 'n' Roll is King" by The Electric Light Orchestra

Listen everybody let me tell you 'bout GraphQL
It's the API architecture that's really gonna thrill your soul
She said come along with me, to a land of graph queries

She said (wam-a-lam-a bam-a-lam-a) GraphQL is king

She loves that GraphQL and she daydreams SDL
That's all she ever tells me when I ping her on the Slack channel
Says named mutations are the key, but it isn't like RPC

She says (wam-a-lam-a bam-a-lam-a) GraphQL is king

Oh let Apollo run
Run queries, run queries
Oh let's install Relay
That's how it's meant to be...

It's coupled to the DB and it gets HATEOAS flack
She threw a runtime error and she gave "200" back
She loves that paradigm, she does JSON not resource-based MIME

She said (wam-a-lam-a bam-a-lam-a) GraphQL is king

Oh let Apollo run
Run queries, run queries
Oh let's install Prisma
That's how it's meant to be

When she comes 'round and I'm reading 'bout REST / RESTful,
She says you under/over-fetch and all I resolve to do is GraphQL
I think I'm gonna choose - to use REST and HTTP2

She says (wam-a-lam-a bam-a-lam-a) GraphQL is king

(wam-a-lam-a bam-a-lam-a) GraphQL is king
(wam-a-lam-a bam-a-lam-a) GraphQL is king
(wam-a-lam-a bam-a-lam-a) GraphQL is king

She says... (wam-a-lam-a bam-a-lam-a) GraphQL is king

With apologies to Jeff Lynne and the GraphQL community

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry 🕒

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Bump.sh

Hate writing docs?

Hate undocumented APIs even more?

Bump.sh generates an always up-to-date API reference site for REST and Event-Driven Architectures.

Plug it in your CI. It fetches your OpenAPI and AsyncAPI (GraphQL pending) spec files, and even generates a diff. Gather all of your API docs in a single source of truth.

Try it for free

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay