Skip to main content

query_handler

Function query_handler 

Source
pub async fn query_handler<A>(
    __arg0: Path<String>,
    __arg1: State<AppState<A>>,
    __arg2: Json<DataBrowserQuery>,
) -> impl IntoResponse
where A: DatabaseAdapter + Clone + Send + Sync + 'static,
Expand description

POST /admin/v1/data/{entity}/query — paginated entity query.

Returns a subset of rows from the compiled schema entity, filtered and sorted according to the request body.

§Errors

Returns 401 without valid admin credentials (enforced by middleware). Returns 404 when the entity does not exist in the compiled schema.