<p>Check that the schema you're querying has permissions to access the asset volumes that your asset field is pulling from.</p>

<p>For images to be returned, the schema you are querying must have permissions for <em>every</em> asset volume that your asset field can pull from. If there are any assets selected in the field which the schema does <em>not</em> have permission to access, then the field will return an empty array.</p>

CC BY-SA 4.0
2019-10-08T01:56:09.840Z
2019-10-08T01:56:09.840Z
Jake Dohm
<p>I have a problem with a graphql query which includes an asset field. The asset field is always an empty array. There are no errors in the graphiql tool.</p>

<p>The graphql api is not public unfortunately but if anyone has any ideas on how I could troubleshoot that would be appreciated.</p>

<p>The query itself is pretty simple:</p>

<pre><code>{
   entries(section: "posts") {
        title
        ... on posts_posts_Entry {
            testText
            imagetest {
                id
            }
        }
    }
}
</code></pre>

<p>Response:</p>

<pre><code>{
  "data": {
    "entries": [
      {
        "title": "Headline",
        "testText": "testing",
        "model": [ ]
      }
    ]
  }
}
</code></pre>

<graphql>
Asset field empty in graphql query response
# Asset field empty in graphql query response

(Asked by: username_0 on 2019-10-08)

I have a problem with a graphql query which includes an asset field. The asset field is always an empty array. There are no errors in the graphiql tool.
The graphql api is not public unfortunately but if anyone has any ideas on how I could troubleshoot that would be appreciated.
The query itself is pretty simple:
{
   entries(section: "posts") {
        title
        ... on posts_posts_Entry {
            testText
            imagetest {
                id
            }
        }
    }
}

Response:
{
  "data": {
    "entries": [
      {
        "title": "Headline",
        "testText": "testing",
        "model": [ ]
      }
    ]
  }
}

**Tags:** graphql


---

## 1 answers

### Answer by username_1 on 2019-10-08. Score: 4 | Accepted answer

Check that the schema you're querying has permissions to access the asset volumes that your asset field is pulling from.

For images to be returned, the schema you are querying must have permissions for *every* asset volume that your asset field can pull from. If there are any assets selected in the field which the schema does *not* have permission to access, then the field will return an empty array.


---

