Inline fragments
Querying
{
course(id: "00000000-5945-95c7-65fc-a9747b200320") {
flows {
activities {
... on ActivityInterface {
title
}
}
}
}
}{
"data": {
"course": {
"flows": [
{
"activities": [
{
"title": "Welcome to the root-level Activity"
}
]
},
{
"activities": [
{
"title": "Learn about paper"
},
{
"title": "Environmental friendliness"
},
{
"title": "Climate change"
}
]
},
{
"activities": [
{
"title": "Introduction to sales"
},
{
"title": "CRM technology"
},
{
"title": "Funnel configuration"
}
]
}
]
}
}
}Inline fragments
{
course(id: "00000000-5945-95c6-65fc-a9747b200320") {
flows {
activities {
__typename
... on ActivityInterface {
title
}
... on PeerReviewActivity {
reviews {
edges {
node {
reviewType
createdAt
}
}
}
}
}
}
}
}
See also
Last updated