UNPKG

@rcsb/rcsb-saguaro-app

Version:
26 lines (25 loc) 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RcsbQueryEntryInstances = void 0; const tslib_1 = require("tslib"); const QueryEntryInstances_graphql_1 = tslib_1.__importDefault(require("../RcsbQueries/Yosemite/QueryEntryInstances.graphql")); class RcsbQueryEntryInstances { 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_id: requestConfig.entry_id, }, QueryEntryInstances_graphql_1.default); return response.entry; } catch (error) { console.error(error); throw error; } }); } } exports.RcsbQueryEntryInstances = RcsbQueryEntryInstances;