UNPKG

@envelop/persisted-operations

Version:

This plugin allow you to enforce execution of persisted (hashed) operation, using a custom store.

4 lines (3 loc) 157 B
export function operationIdFromSource(source) { return typeof source === 'string' && source.length && source.indexOf('{') === -1 ? source : undefined; }