Skip to main content

Retrieving a Record

You can use queries to retrieve records. In the following examples, we have a table called Posts, which contains fields and relations like title, body, author.

Query a single record and return data from related tables in the response.

Request

query {
post(title: "Awesome Possum") {
title
author {
name
avatar {
downloadUrl
}
}
}
}

Result

{
"data": {
"post": {
"title": "Awesome Possum",
"author": {
"name": "Huxley",
"avatar": {
"downloadUrl": "https://linktomy.downloadUrl/forA/amazingAvatar.jpg"
}
}
}
}
}