Query fragments
Query fragments are reusable GraphQL units that construct sets of fields that can be included in queries without repeating the field list. Fragments are especially useful for complex queries that need to reuse part of the query — to extend fieldData
— in different nodes in the graph.
When you combine fieldData
with the "… on
" inline fragment operator, you extend the field data and get more specific data. Because Medallia Experience Cloud data type can have their own schemas, use inline fragments to explore the graph on each dataType
.