export function toQueryResult(value) {
    const result = {
        data: value.data,
    };
    if (value.error) {
        result.error = value.error;
    }
    return result;
}
//# sourceMappingURL=toQueryResult.js.map
