Summary
In this chapter, we learned how GraphQL is formed, how GraphQL differs from GROQ, and how to filter results using where
. Finally, we learned how to use Sanity's GraphQL playground to construct and verify the schemas, and we looked at examples. GraphQL will be the means by which all programs wishing to connect to Sanity might easily do so in a standard and compact way. In the following chapters, GraphQL will be important since the static-site generator will use it exclusively.
In the next chapter, we will introduce Gatsby, another part of the Jamstack. We will use some of the GraphQL examples shown here in order to connect Sanity's datasets to Gatsby.