...
There are many ways to retrieve the event data, but the following example will look at a common use case where the session id is knownfor retrieving all the photos from a session with a known session id. The session id can be retrieved prior by looking at a user’s list of scenario sessions or performing queries to find the desired session.
Arguments
These are all optional arguments since the query will return all the events available. In this example, we will filter the results based on the scenario session id and the type of values found on the event.
id: The GraphQL ID of the scenario session
first: How many results in the query. Maximum of 100 due to request sizeresults in a query. Use the AfterIndex paramter to obtain more results.
valueTypes: The types of values that events will be filtered. In this example, it will be a
PHOTO
.
...
scenarioSessionId: The GraphQL ID of the scenario session.
scenarioStepId: The GraphQL ID of the scenario step. Note that this is not the scenario session step but the step id itself. The scenario step ID can be retrieved by looking at all the scenario steps within a published scenario and retrieving the ID for the desired step.
firstEvents: How many event results to return in the query. Maximum of 100 due to request sizeresults in a query. Use the AfterIndex paramter to obtain more results.
firstSteps: How many steps step results to return in the query. It is expected to only be oneMaximum of 100 results in a query. Use the AfterIndex paramter to obtain more results.
valueTypes: The types of values that events will be filtered. In this example, it will be a
PHOTO
.
...