UNPKG

graphql-paper

Version:

A flexible in-memory store based on a GraphQL Schema

10 lines (9 loc) 290 B
import { DOCUMENT_KEY_SYMBOL } from '../constants.mjs'; function getDocumentKey(keyOrDocument) { if (typeof keyOrDocument === 'string') { return keyOrDocument; } return keyOrDocument[DOCUMENT_KEY_SYMBOL]; } export { getDocumentKey }; //# sourceMappingURL=get-document-key.mjs.map