graphql-paper
Version:
A flexible in-memory store based on a GraphQL Schema
12 lines (11 loc) • 348 B
JavaScript
import { findDocument } from '../store/find-document.mjs';
import { getDocumentKey } from '../document/get-document-key.mjs';
function findOperation(context, keyOrDocument) {
var {
store
} = context;
var key = getDocumentKey(keyOrDocument);
return findDocument(store, key);
}
export { findOperation };
//# sourceMappingURL=find.mjs.map