Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

Introduction to GROQ Query Language

via egghead.io

Overview

GROQ (Graph-Relational Object Queries) is a query language for JSON. This course will help you build your first query and walk you through filters, projections, functions, and the other features of GROQ to help you request exactly the data that you want.
In this course, John Lindquist will teach you how to create and structure GROQ queries to load exactly the data you want.
The course will kick off by giving you a quick introduction on what GROQ is, and then you will learn how to use the different features the language supports.
At the end of this course you will know how to use GROQ in the context of a Sanity.io dataset.

Syllabus

  • What is GROQ?
  • Create a GROQ Filter
  • Use GROQ Projections to Get the Data You Want
  • Use GROQ `select` to Set Values Based on Conditions
  • Use GROQ to Filter Items Based on an Array
  • Limit the Number of Items Returned from a GROQ Query
  • Order the Results Returned from a GROQ Query
  • Join Together Two Arrays in GROQ
  • Filter Arrays in JSON Based on Other Arrays in GROQ
  • Advanced GROQ With Parent Scopes and Subqueries

Taught by

John Lindquist

Reviews

4.9 rating at egghead.io based on 24 ratings

Start your review of Introduction to GROQ Query Language

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.