Explain
The /query/explain
and /mutation/explain
endpoints are not implemented in the reference implementation, because their respective request objects are interpreted directly. There is no intermediate representation (such as SQL) which could be described as an "execution plan".
The query.explain
and mutation.explain
capabilities are turned off in the capabilities endpoint,
and the /query/explain
and /mutation/explain
endpoints throw an error:
async fn post_query_explain(
Json(_request): Json<models::QueryRequest>,
) -> Result<Json<models::ExplainResponse>> {
Err((
StatusCode::NOT_IMPLEMENTED,
Json(models::ErrorResponse {
message: "explain is not supported".into(),
details: serde_json::Value::Null,
}),
))
}