UNPKG

graphql-mocks

Version:

Tools for setting up graphql test resolvers

13 lines (12 loc) 287 B
import { isNamedType } from 'graphql'; function isInternalType(type) { if (isNamedType(type)) { type = type.name; } if (typeof type !== 'string') { return false; } return type.startsWith('__'); } export { isInternalType }; //# sourceMappingURL=is-internal-type.mjs.map