UNPKG

postgraphile

Version:

A GraphQL schema created by reflection over a PostgreSQL schema 🐘 (previously known as PostGraphQL)

12 lines (11 loc) 359 B
if (process.env.GRAPHILE_TURBO === '1') { const major = parseInt(process.version.replace(/\..*$/, ''), 10); if (major < 14) { throw new Error( 'Turbo mode currently requires Node v14 or higher, please upgrade Node.js or remove the GRAPHILE_TURBO environmental variable.', ); } module.exports = true; } else { module.exports = false; }