Eve Porcello demonstrates how a schema is comprised of types and how the GitHub API uses them. She also shows how each input value should be set up as a particular type.
- [Instructor] We've looked at a few of the Object Types…that are found in the GitHub API.…They're the common nouns that are associated with GitHub.…Like a Viewer, an Issue, or a Repository.…These are all really well documented…in the Graphical Documentation Explorer.…So if we want to see what Types are available in the Schema,…we can always look for them,…and the Types are these capitalized Objects here.…So things like Organization, or Repository.…Clicking on one of those will display all of the fields…that are on that Type.…
The next thing I want to point out…is we have all of these different Types…associated with the field.…So these are more common Types,…like Booleans, or Strings, et cetera.…When a Schema is defined, we are similarly specific…about the types of Input Values that are allowed.…These could be Argument Values, or Field Values.…So we have Integers, Floats, Strings, Booleans,…Null, Enums, Lists, and Objects as possible Types.…
You can also find these…in the Documentation Explorer as well.…So hasissuesEnabled is set to Boolean.…
In this course, learn how to get started with GraphQL. Eve Porcello walks through the basics of this query language, diving into the data fetching specification, and helping you get up to speed with the syntax and vocabulary of GraphQL. Eve explains how to create basic queries, including how to work with arguments and multiple fields. She also goes into complex techniques for handling data, including working with aliases, fragments, and pagination. Plus, she covers how to edit and transform data with mutations.
- Learning about the origins of GraphQL
- Learning about how GraphQL makes data fetching and updating easier
- Creating basic queries
- Using multiple fields
- Understanding schemas
- Handling data
- Drilling down into nested fields with a query
- Adding variables for argument values
- Creating mutations
- Adding a reaction mutation