UNPKG

graphql-paper

Version:

A flexible in-memory store based on a GraphQL Schema

14 lines (12 loc) 403 B
'use strict'; var findDocument = require('../store/find-document.js'); var getDocumentKey = require('../document/get-document-key.js'); function findOperation(context, keyOrDocument) { const { store } = context; const key = getDocumentKey.getDocumentKey(keyOrDocument); return findDocument.findDocument(store, key); } exports.findOperation = findOperation; //# sourceMappingURL=find.js.map