Skip to main content

Related Record Query

For the sake of the following examples, let's consider a scenario where a table called Posts exists, having expected fields and relations like title, body, author, etc.

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

query {
post(title: "Awesome Possum") {
title
author {
name
avatar {
downloadUrl
}
}
}
}
{
"data": {
"post": {
"title": "Awesome Possum",
"author": {
"name": "Huxley",
"avatar": {
"downloadUrl": "https://linktomy.downloadUrl/forA/amazingAvatar.jpg"
}
}
}
}
}
on this page
Was this article useful?
89% of our users said this content was useful.