UNPKG

@rcsb/rcsb-saguaro-app

Version:
26 lines (25 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RcsbQueryMultipleEntriesProperties = void 0; const tslib_1 = require("tslib"); const QueryMultipleEntriesProperties_graphql_1 = tslib_1.__importDefault(require("../RcsbQueries/Yosemite/QueryMultipleEntriesProperties.graphql")); class RcsbQueryMultipleEntriesProperties { constructor(getClient) { this.getClient = getClient; } request(requestConfig) { return tslib_1.__awaiter(this, void 0, void 0, function* () { try { const response = yield this.getClient().request({ entry_ids: requestConfig.entry_ids, }, QueryMultipleEntriesProperties_graphql_1.default); return response.entries; } catch (error) { console.error(error); throw error; } }); } } exports.RcsbQueryMultipleEntriesProperties = RcsbQueryMultipleEntriesProperties;