Skip to content

Commit 3fcc5bc

Browse files
Update work-with-data.md
------- cc: @georgewallace
1 parent d2dd084 commit 3fcc5bc

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

articles/governance/resource-graph/concepts/work-with-data.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ consumer if there are more records not returned in the response. This condition
8787
identified when the **count** property is less than the **totalRecords** property. **totalRecords**
8888
defines how many records that match the query.
8989

90-
**resultTruncated** is **true** when either paging is disabled or not possible because no `id`
91-
column or when there are less resources available than a query is requesting. When
92-
**resultTruncated** is **true**, the **$skipToken** property isn't set.
90+
**resultTruncated** is **true** when there are less resources available than a query is requesting or when paging is disabled or when paging is not possible because:
91+
92+
- The query contains a `limit` or `sample` operator.
93+
- All output columns are either `dynamic` or `null` type.
94+
95+
When **resultTruncated** is **true**, the **$skipToken** property isn't set.
9396

9497
The following examples show how to **skip** the first 3,000 records and return the **first** 1,000
9598
records after those records skipped with Azure CLI and Azure PowerShell:
@@ -103,8 +106,9 @@ Search-AzGraph -Query "Resources | project id, name | order by id asc" -First 10
103106
```
104107

105108
> [!IMPORTANT]
106-
> The query must **project** the **id** field in order for pagination to work. If it's missing from
107-
> the query, the response won't include the **$skipToken**.
109+
> The response won't include the **$skipToken** if:
110+
> - The query contains a `limit` or `sample` operator.
111+
> - All output columns are either `dynamic` or `null` type.
108112
109113
For an example, see
110114
[Next page query](/rest/api/azureresourcegraph/resourcegraph(2021-03-01)/resources/resources#next-page-query)

0 commit comments

Comments
 (0)