Type Definition lib::errors::GQLResult[][src]

type GQLResult<T> = Result<T>;
Expand description

A wrapper around async_graphql::Result. 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(
    &self,
) -> GQLResult<String> {
    // Your code here
}