UNPKG

graphql-mocks

Version:

Tools for setting up graphql test resolvers

15 lines (13 loc) 318 B
'use strict'; var graphql = require('graphql'); function isInternalType(type) { if (graphql.isNamedType(type)) { type = type.name; } if (typeof type !== 'string') { return false; } return type.startsWith('__'); } exports.isInternalType = isInternalType; //# sourceMappingURL=is-internal-type.js.map