Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Client Help

Why can't I get title specific data points in Series State?

Article 2972669, Status: VALIDATED

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Client Help
+ More

Table of Contents

❓Issue/Question 💻Environment/Context 👌Resolution/Answer 🗒️Scratch Pad

❓Issue/Question

  • I'm trying to access a title specific data point in Series State but it always returns undefined.
  • SegmentTeamStateCs2: Field 'winType' in type 'SegmentTeamState' is undefined"

💻Environment/Context

  • Series State

👌Resolution/Answer

  • To get title specific data points, you need to use the corresponding sub object by using an inline fragment
  • Here is are two examples in one query 
    • Getting winType data point using the …on SegmentTeamStateCS2 inline fragment
    • Getting alive and headshots data points using the …on GamePlayerStateCS2 inline fragment
    • As you can see the name data point can be used either inside or outside the inline fragment, since it is part of the parent object
query SeriesState {
    seriesState(id: "28") {
        started
        finished
        valid
        games {
            id
            teams {
                name
                players {
                	name
                    ... on GamePlayerStateCs2 {
                        alive
                        headshots
                    }
                }
            }
            segments {
                id
                teams {
                    ... on SegmentTeamStateCs2 {
                    	name
                        winType
                    }
                }
            }
        }
    }
}

🗒️Scratch Pad

  •  

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Why can't I access Series State documentation on the API?
  • Why can't I see teams listed under a tournament?
Privacy Policy
Esports Players Privacy Notice
Imprint
Careers
GRID® 2022 | All Rights Reserved
Expand