Snapshots object schema
Snapshots represent point-in-time copies of your data, allowing you to track historical changes. You can query your snapshots from the Discovery API.
The Example query illustrates a few fields you can query with the snapshots
object. Refer to Fields to view the entire schema, which provides all possible fields you can query.
Arguments
When querying for snapshots
, you can use the following arguments:
Fetching data...
Example query
You can specify the environmentId
, filter by the database, and limit to the first 100 to see the first 100 snapshots in the analytics
database, including their execution performance and status information:
query {
environment(id: 834) {
applied {
snapshots(
filter: {
database: "analytics"
},
first: 100
) {
edges {
node {
executionInfo {
compileCompletedAt
compileStartedAt
executeCompletedAt
executeStartedAt
executionTime
lastRunStatus
lastRunId
}
fqn
name
}
}
}
}
}
}
Fields
When querying for snapshots
, you can use the following fields:
Fetching data...
Key fields from nodes
Fetching data...
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.