DEV Community

Cover image for GraphQL is King
Mike Ralphson
Mike Ralphson

Posted on • Updated on

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

Top comments (0)