From the course: Building a GraphQL Project with React.js

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Building queries

Building queries

- [Instructor] So let's go ahead and talk about how queries are built with GraphQL and then we'll work on some different examples and then we'll take a look at how that works inside the GraphQL Explorer. The structure of all the data in your queries is known as the schema. And this is a common term in databases. This just means that you need to understand how your data is going to be structured when you ask for it especially with GraphQL. Now, searches are done by looking through different fields and sub fields. We already saw a few of them. In the example that we use earlier, our query field is what we were looking for. Now, the fields can be of different types. You're probably familiar with some traditional types like strings, integers, and Booleans, but each GraphQL instance also has its own custom types. So, for example, one of the types is a repository. That's a unique type that GitHub has that isn't really a…

Contents