In this video Emmanuel Henri discusses all the different scalar types that comes out of the box with GraphQL and then adds a new field into the schema.
- [Instructor] Scalar types are basic types…that comes GraphQL and can be used…without having to create type beforehand.…With GraphQL, we have access to these basic scalar types.…We have int, for integers, your regular number.…We have float, which is a float number,…which basically includes a decimal point.…So, example, 4.56.…We have string, for any list of characters,…like we've used so far.…We have an ID, which is a unique identifier…for each entry in GraphQL,…and we have boolean, which has a value of true or false.…
For each field we enter into our type,…like our friend type,…we need to define what scalar type it takes.…Let's add a new field with a different scalar type…to our schema.…Let's go ahead and add to Friend.…Whenever we add new things or new fields…inside of a specific type…and we have also an input type that actually influences…that type, we need to make sure…that we have the same fields.…For example, if we add age here,…and for age we take an integer, then we want to make sure…that we also have it in the FriendInput,…
- Basic GraphQL schema
- Object types and fields
- Role of the resolver in GraphQL
- Scalar and enumeration types
- Using GraphQL tools
- Setting up persistence
- Adding new items with mutations
- Updating and deleting items with mutations
- Queries with arguments, aliases, and fragments
Skill Level Intermediate
GraphQL: Data Fetching with Relaywith Emmanuel Henri2h 28m Advanced
1. Setup and Introduction
2. Types and Schemas
3. Setting Up Persistence
5. Queries in Depth
Next steps1m 8s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.