Introspection¶
An alternative way to discover the queries and types available at the Denodo GraphQL Service is the GraphQL introspection system.
For example, if you want to know which fields are available for the GraphQL
type order
, you can send a POST request to the introspection system:
{
"data": {
"__type": {
"name": "order",
"kind": "OBJECT",
"description": null,
"fields": [
{
"name": "order_id",
"type": {
"name": "Int",
"kind": "SCALAR"
}
},
{
"name": "cust_id",
"type": {
"name": "Int",
"kind": "SCALAR"
}
},
{
"name": "total_price",
"type": {
"name": "BigInteger",
"kind": "SCALAR"
}
},
{
"name": "order_desc",
"type": {
"name": "String",
"kind": "SCALAR"
}
},
{
"name": "order_date",
"type": {
"name": "Timestamp",
"kind": "SCALAR"
}
},
{
"name": "last_updated_time",
"type": {
"name": "Timestamp",
"kind": "SCALAR"
}
},
{
"name": "order_detail",
"type": {
"name": null,
"kind": "NON_NULL"
}
}
]
}
}
}