GraphQL Genie (v0.4.24) is a schema-driven GraphQL API generator that automatically creates a full CRUD API, including queries, mutations, subscriptions, and role-based access control, from your GraphQL type definitions. It leverages Fortune.js for data storage, supporting multiple backends (e.g., MongoDB, NeDB, SQLite) and works both client-side and server-side. Unlike other schema generators, it emphasizes referential integrity, inverse updates, and transactional operations. The package includes built-in TypeScript types, but its peer dependencies require specific versions of fortune, graphql, graphql-tools, and lodash. Development appears to be in maintenance mode with limited recent updates.
npm install graphql-genieNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a GraphQLGenie instance, passes GraphQL type definitions, and generates a full GraphQL schema with CRUD operations.
Ensure fortune@^5.0.0, graphql@^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0, graphql-tools@^3.0.0 || ^4.0.0, lodash@^4.0.0 are installed.
Always verify runtime behavior against documentation. File issues on GitHub if mismatches are found.
Consider evaluating alternatives like GraphQL Nexus, TypeGraphQL, or Hasura for active development.
Use const GraphQLGenie = require('graphql-genie').default or enable esModuleInterop in tsconfig.Install the appropriate fortune adapter package and configure it in the GraphQLGenie options.
Run npm install fortune@^5.0.0
Use default import: import GraphQLGenie from 'graphql-genie'; then new GraphQLGenie(...).
Install graphql@14.0.0 or any supported version.
Ensure typeDefs is a string or DocumentNode. Example: const typeDefs = `type Query { hello: String }`;