Fetch pending entries with GraphQL
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: &quot;yourSectionHandle&quot;, status: [&quot;live&quot;, &quot;pending&quot;]) {
    title
  }
}

Or if you want to use variables:
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;]
}

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