        result.errors = Some(vec![QueryError::from(e)]);
        result
    }
}

impl From<Vec<QueryExecutionError>> for QueryResult {
    fn from(e: Vec<QueryExecutionError>) -> Self {
        QueryResult {
            data: None,
            errors: Some(e.into_iter().map(QueryError::from).collect()),
            extensions: None,
        }