UNPKG

graphql-mocks

Version:
19 lines (13 loc) 421 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var graphql = require('graphql'); /** * Checks if a type is a list type or a wrapped list type (ie: wrapped with non-null) */ function hasListType(type) { return graphql.isListType(type) || graphql.isNonNullType(type) && graphql.isListType(type.ofType); } exports.hasListType = hasListType; //# sourceMappingURL=has-list-type.js.map