UNPKG

graphql-parse-resolve-info

Version:

Parse GraphQLResolveInfo (the 4th argument of resolve) into a simple tree

10 lines (9 loc) 314 B
if (process.env.GRAPHILE_TURBO === "1") { const major = parseInt(process.version.replace(/\..*$/, ""), 10); if (major < 12) { throw new Error("Turbo mode requires Node v12 or higher"); } module.exports = require("./build-turbo/index.js"); } else { module.exports = require("./node8plus/index.js"); }