Type Definition diana::errors::GQLResult [−][src]
type GQLResult<T> = Result<T>;
Expand description
A wrapper around async_graphql::Result<T>
.
You should use this as the return type for any of your own schemas that might return errors.
Example
use diana::errors::GQLResult; async fn api_version() -> GQLResult<String> { // Your code here Ok("test".to_string()) }