UNPKG

ra-data-graphql-simple

Version:

A GraphQL simple data provider for react-admin

15 lines 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var graphql_1 = require("graphql"); /** * Ensure we get the real type even if the root type is NON_NULL or LIST * @param {GraphQLType} type */ var getFinalType = function (type) { if (type.kind === graphql_1.TypeKind.NON_NULL || type.kind === graphql_1.TypeKind.LIST) { return getFinalType(type.ofType); } return type; }; exports.default = getFinalType; //# sourceMappingURL=getFinalType.js.map