//! Error conversion helpers for GraphQL resolvers
useasync_graphql::Error;/// Convert any displayable error into a GraphQL error
pubfnservice_error<E:std::fmt::Display>(e: E)-> Error{Error::new(e.to_string())}/// Create a "not found" GraphQL error
pubfnnot_found_error(entity:&str, id:&str)-> Error{Error::new(format!("{} with id '{}' not found", entity, id))}