#4 Types & Data | Build a Complete App with GraphQL, Node.js, MongoDB and React.js

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi, welcome back to the series, definitely check out the the other parts of your knew to see how we this point we'll add right now. And this video will contain countinue working on the graphql API and we'ill add something which is super importatnt for graphql. We'll add types because graphql works with types and types are what allowed us write more powerful and complexs graphql APIs in the end so let's diving and see how that works so here is the graphql APIs as we lefted the last time we got RootQuery , RootMutation with the events here in the RootQuery so that single endpoint we have for getting data basically and that single we got for storing data i am not getting or storing anything realistic in my, resolvers function in the end i returned dummy array of strings and i only echo back the data you want to store we'll work on that, we also make sure we have events that more than just some string because in the end an event should be a complex object here now before I adds a database which we'll as soon too lets simply store that in store memory here in the running server on this runnung node application and lets start by adding a real event object so in graphql we work with type as I mention, we actually define some type here already the query and the mutation type which we need in this root schema node here in our graphql setup now i'll add another custom type here and this is edited or created by simply using the type keyword graphql understands and then we can gives type any name you want and i will name it event, because again i am
Info
Channel: Academind
Views: 60,625
Rating: undefined out of 5
Keywords: graphql, types, resolvers, schema, schemas, graphql api, apis, tutorial, full project, example, example project, node, node.js, nodejs, react, reactjs, react.js, mongodb
Id: 6YlXANbXt0g
Channel Id: undefined
Length: 19min 22sec (1162 seconds)
Published: Mon Dec 10 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.