DEV Community

Discussion on: Why GraphQL?

Collapse
 
sam26880 profile image
Saumil Shah

I'm completely new to GraphQL but what do you guys think about the use case of publish-subscribe model and using GraphQL as a replacement for something like Firebase where you can send realtime data to clients who have subscribed. Or Am I not getting this right?

Collapse
 
saranshk profile image
saransh kataria

GraphQL subscriptions are probably what you are looking for. howtographql.com/graphql-js/7-subs... might be a good resource to get started.

Collapse
 
sam26880 profile image
Saumil Shah

@saransh kataria, thanks for the suggestion. I did know that's what I was looking for. I guess what I was trying to find out was people's opinion on it vs using something like Firebase. Any ideas?

Thread Thread
 
saranshk profile image
saransh kataria

It depends on your use case. I have used Firebase for a small application and it worked great, but it fell short on complex queries and did not have a sophisticated permissions system. I might be wrong since I did not use it a lot, but those two things made it a no go for bigger applications for me.

Thread Thread
 
sam26880 profile image
Saumil Shah

Makes sense. Thanks for the reply!