Chapter 2. The ReQL Query Language
RethinkDB is queried using ReQL—a custom query language designed to be powerful and intuitive. ReQL provides a clear syntax that can be used to manipulate JSON documents in the database. This chapter will introduce you to the most common ReQL queries. More advanced use cases will be covered in the Chapter 4, Performance Tuning and Advanced Queries.
This chapter also covers the basics of moving data in and out of the database by creating tables and populating them with JSON documents.
In this chapter, you will learn the following:
- Creating a database
- Creating new tables
- Adding, updating, and removing documents
- Querying the database and manipulating results
Before we start querying the database, let's take a closer look at how a document database works, focusing on RethinkDB's data structure—JSON documents.