The following queries are SAMPLES. As a consumer of the Scope GraphQL API, you can design and use any properly formed query to retrieve the data that you require.
For more information, see “Introduction to the Scope GraphQL API“.
Retrieving A Single Scenario Session’s Data
query SampleScenarioSessionNodeQueryDemonstratingImportantFields($id: ID!) { node(id: $id) { ... on ScenarioSession { startedAt endedAt duration idleDuration numberOfStepsPossible numberOfStepsViewed percentOfStepsViewed state externalData # NOTE: this is where query params passed from the System of Record can be found scenarioRelease { author { id name } publishedAt scenario { author { id name } description name originGroup { id name } publishedAt } type version } events { nodes { id createdAt receivedAt type externalData } } steps { nodes { scenarioStep { name orderIndex scenarioSequence { name } } } } } } }
Retrieving All Scenario Session Data
query SampleAllScenarioSessionsQueryDemonstratingImportantFields { viewer { organization { scenarioSessions { nodes { startedAt endedAt duration idleDuration numberOfStepsPossible numberOfStepsViewed percentOfStepsViewed state externalData # NOTE: this is where query params passed from the System of Record can be found scenarioRelease { author { id name } publishedAt scenario { author { id name } description name originGroup { id name } publishedAt } type version } events { nodes { id createdAt receivedAt type externalData } } steps { nodes { scenarioStep { name orderIndex scenarioSequence { name } } } } } } } } }
Add Comment