query

suspend fun query(apiPath: String, body: RequestBody? = null, headers: Map<String, Any>? = FetchDefaults.Headers, redirect: RequestRedirect? = FetchDefaults.Redirect, abortController: AbortController? = null): Response(source)

Call QUERY on a target API path.

See also tryQuery, which will return null if the request fails.

Note: you should NOT prepend your path with "api/", as that will be added automatically.