<p>If you want <code>live</code> and <code>pending</code> entries, you would need to pass <code>status</code> to your query with the values you want (<a href="https://craftcms.com/docs/3.x/entries.html#status" rel="nofollow noreferrer">docs</a>).</p>
<pre><code>query yourQuery {
  entries(section: &quot;yourSectionHandle&quot;, status: [&quot;live&quot;, &quot;pending&quot;]) {
    title
  }
}
</code></pre>
<p>Or if you want to use variables:</p>
<pre><code>query yourQuery($section: [String], $status: [String]) {
  entries(section: $section, status: $status) {
    title
  }
}

# query variables:
{
  &quot;section&quot;: &quot;yourSectionHandle&quot;,
  &quot;status&quot;: [&quot;live&quot;, &quot;pending&quot;]
}
</code></pre>
<p>If you want all entries, (<code>disabled</code> and <code>expired</code> included) you can use <code>status:null</code>.</p>

CC BY-SA 4.0
2020-11-06T22:07:58.003Z
This is perfect, thanks so much!
Isabel Sharp
CC BY-SA 4.0
2020-11-06T08:10:14.707Z
2020-11-06T08:10:14.707Z
Oli
<p>I'm setting up Craft to be used headlessly with a mobile app, and content will be created several days before it is published. I want app admins to be able to see upcoming/pending entries. Is there a way to fetch all entries, not just currently published ones? When I do basic queries with the GraphQL api explorer I only see entries that are past their post date, but I'm a GraphQL newbie, so maybe I'm missing something?</p>

<entries><graphql><pending>
Fetch pending entries with GraphQL
# Fetch pending entries with GraphQL

(Asked by: username_0 on 2020-11-05)

I'm setting up Craft to be used headlessly with a mobile app, and content will be created several days before it is published. I want app admins to be able to see upcoming/pending entries. Is there a way to fetch all entries, not just currently published ones? When I do basic queries with the GraphQL api explorer I only see entries that are past their post date, but I'm a GraphQL newbie, so maybe I'm missing something?

**Tags:** entries, graphql, pending

---

## 1 answers

### Answer by username_1 on 2020-11-06. Score: 1 | Accepted answer

If you want live and pending entries, you would need to pass status to your query with the values you want (docs).
query yourQuery {
  entries(section: "yourSectionHandle", status: ["live", "pending"]) {
    title
  }
}

Or if you want to use variables:
query yourQuery($section: [String], $status: [String]) {
  entries(section: $section, status: $status) {
    title
  }
}

# query variables:
{
  "section": "yourSectionHandle",
  "status": ["live", "pending"]
}

If you want all entries, (disabled and expired included) you can use status:null.

> **Comments:**
> **username_0**: This is perfect, thanks so much!  

---

