UNPKG

@rcsb/rcsb-saguaro-app

Version:
24 lines (23 loc) 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RcsbQueryInterfaceInstances = void 0; const tslib_1 = require("tslib"); const QueryInterfaceInstances_graphql_1 = tslib_1.__importDefault(require("../RcsbQueries/Yosemite/QueryInterfaceInstances.graphql")); class RcsbQueryInterfaceInstances { constructor(getClient) { this.getClient = getClient; } request(requestConfig) { return tslib_1.__awaiter(this, void 0, void 0, function* () { try { const response = yield this.getClient().request(requestConfig, QueryInterfaceInstances_graphql_1.default); return response.interfaces; } catch (error) { console.error(error); throw error; } }); } } exports.RcsbQueryInterfaceInstances = RcsbQueryInterfaceInstances;