Complete guide to building a GraphQL API
- 2 hours on-demand video
- 1 article
- 1 downloadable resource
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- Understand how GraphQL works
- Learn how to install and use Graphiql
GraphQL is all about using fields to get specific data out of your API. They are very flexible and always behave the same way, wherever you use them in your queries.
Sometimes you want to pass some information to your fields. With arguments you can do exactly that. You can for instance request the details of a blog post and give the ID of the post as an argument.
In this video I'll introduce two new concepts: aliases and fragments.
In GraphQL, every field that your query has to be unique. With aliases you can work around this limitation. So you can ask for details about blog post #1 and blog post #2 at the same time.
If you are querying the same fields over and over again, your queries become big and cluttered. With fragments you can group those repetitive fields and re-use them easily. Cleaner code & easier to manage!
GraphQL is a query language developed by Facebook to power their mobile applications. It's a replacement for traditional REST API's and is far more flexible and faster. With GraphQL you can query multiple resources with a single request to the server. Making it ideal for web applications and mobile apps.
It's very easy to write your own GraphQL API. It's compatible with any database and can even work across different database engines if required. Start now and have your GraphQL API running in no time!
- Anyone who wants to learn how to build a GraphQL API
- Anyone who is tired of inflexible, inefficient REST API's