Building GraphQL APIs in C# - Brandon Minnick - NDC Oslo 2021

preview_player
Показать описание
GraphQL is an exciting new API architecture that enables huge performance benefits over REST APIs.

But what is GraphQL? Why is it better than REST? And how do you create a GraphQL API in C#.

Join me as we learn all of this and more!

- Introduction to GraphQL
- Difference between REST & GraphQL
- C# libraries for building GraphQL APIs
- How to create a GraphQL API in C#

Check out more of our featured speakers and talks at
Рекомендации по теме
Комментарии
Автор

We installed graphql on our c# webapi and holy crap, it's such an improvement over using rest for our angular development. We use it mainly for querying data and still have our rest apis living alongside it for put, post, patch and delete operations.

Having the ability to declare which properties to return in the payload without having to update the endpoints is the killer feature for me. This minimized the response payloads significantly. We also avoid having to run additional deployments on the backend

zeric_
Автор

Well explained! thanks!! This video helped me build my first hot chocolate graphql service in no time (1 -> 2 hours). Looking forward to build my first graphql client

تعلمبأحتراف
Автор

Tried this today and the long loading screen for the localhost/graphql was just a bug in the presentation, it loads up in a second by me.

muhamedkarajic
Автор

I am going to follow this presentation through to see what benefits graphql has, because I restrict columns in rest and have options to show embedded objects and collections, especially if you obtain data through a post, rather than a get and define your filters and columns in the body. I am certainly not calling one endpoint for a user and then calling another for other related data, when that data can already be embedded. Or is it just me with this?

jamesbowring
Автор

Please provide the link for slides in the description

ONESTTEFTEO
Автор

GraphQL does not use Rest, "You don't know what you''re talking about.." - only a reflection on your comment. That's like saying Soap is not dead because Rest uses Soap. They all use the HTTP Protocol that has a method POST, or GET, or Put etc.. HTTP protocol uses TCP/IP protocol, and GraphQL, Rest, Soap are protocols themselves on the HTTP protocol.

oZuelo
Автор

There is a lot of hand waving here when he talks about connecting to RDBMS and/or existing REST services. Making random queries perform well is not trivial and involves a lot of design work. I'm not disparaging graphql but someone taking this on should dig deeper into how they will retrieve data efficiently.

odelljl
Автор

ODATA is pretty nice and already does these things, doesn't it?

fieryscorpion
Автор

POST is HTTP thing not REST "thing". LOL. Good content otherwise.

Leo-tfgu