DEV Community

Cover image for How you can build a Serverless API using GraphQL .Net Core, C# and VS Code

How you can build a Serverless API using GraphQL .Net Core, C# and VS Code

Chris Noring on August 07, 2019

Follow me on Twitter, happy to take your suggestions on topics or improvements /Chris This article takes you through how to build a full CRUD API...
Collapse
 
oranintelliflo profile image
Oran Halberthal

Hi,

Nice article, thanks šŸ˜€

I played with GraphQL a bit and what really put me off is the schema being defined in a string, so no strong typing, no coherence between the schema and the code etc

It's kind of ok for jedi and Todo examples but a full blown API will become very difficult to manage.

Does anyone know of an implementation that doesn't rely on schema in a string?

Collapse
 
softchris profile image
Chris Noring

well I think the way they solve that is by having extensions like this one marketplace.visualstudio.com/items... so you at least have tooling support. I mean it is strongly typed. You get quite good indications that you are doing it wrong if you start typing in GraphIQL, the UI environment

Collapse
 
jaymeedwards profile image
Jayme Edwards šŸƒšŸ’»

Great article. I still think we have a long way to go with developer friendliness around these types of APIs. The number of moving parts and concepts that need to be grasped for basic crud borders on intellectual masturbation IMHO.

Iā€™d like to see someone build a framework that generates or abstracts all of this to require way less code.

Great job breaking it down and showing us the state of these technologies!

Collapse
 
softchris profile image
Chris Noring

yea I agree. There definitely exists a lot of great generators for generating code from schemas. That will have to be a separate article :)

Collapse
 
markpieszak profile image
Mark Pieszak • Edited

Wow, another fantastic, in-depth article Chris !
It's always a pleasure to read your work :)

Collapse
 
softchris profile image
Chris Noring

Thank you Mark :) much appreciated

Collapse
 
afsharm profile image
Afshar

Thanks for the article. I am excited about GraphQL. We are currently using OData heavily. I hope GraphQL can be a good alternative or at least be a complementary for OData.

Collapse
 
softchris profile image
Chris Noring

thank you, Jeffrey. Really appreciate that :)