Graphql get issues from specific workspace sprint

From this previous post Need help navigating new GraphQL API
Can one query a specific workspace and sprint for its issues?
Eg, that post had example of
query {
workspace(id: “workspaceId”){
sprints(last: 2, filters:{state: {eq: OPEN}}) {

Below does not work. What is supported/possible?
query {
workspace(id: “workspaceId”){
sprints(id: “SprintId”)

Thanks

Hey zenchen!

Try this query here, where ID is the ID of the Sprint, this will return all issues with some extra details (title, ID, number etc) that are in the sprint.

query Node($id: ID!) {
    node(id: $id) {
        id
        ... on Sprint {
            closedIssuesCount
            completedPoints
            createdAt
            description
            endAt
            id
            name
            startAt
            state
            totalPoints
            updatedAt
            sprintIssues {
                totalCount
                nodes {
                    id
                    createdAt
                    issue {
                        body
                        closedAt
                        createdAt
                        ghCreatedAt
                        ghId
                        ghNodeId
                        ghUpdatedAt
                        htmlBody
                        htmlUrl
                        id
                        number
                        pullRequest
                        state
                        title
                        type
                        updatedAt
                        viewerPermission
                    }
                }
            }
        }
    }
}

This works, thank you!