@envelop/persisted-operations
Version:
This plugin allow you to enforce execution of persisted (hashed) operation, using a custom store.
8 lines (7 loc) • 322 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.operationIdFromSource = void 0;
function operationIdFromSource(source) {
return typeof source === 'string' && source.length && source.indexOf('{') === -1 ? source : undefined;
}
exports.operationIdFromSource = operationIdFromSource;