iGraphQL is an ORM for MongoDB that integrates with GraphQL Zeus to generate type-safe database operations from GraphQL schemas. Current stable version is 0.2.2 (alpha). It provides auto-generated fields (e.g., _id, timestamps), a data loader to solve N+1 problems, and CRUD methods. Unlike general-purpose ORMs like Mongoose, iGraphQL is GraphQL-centric and relies on graphql-zeus for type generation. It requires MongoDB driver >= 5.1.0 and ships TypeScript types. Release cadence is low; the project is in early alpha and may have breaking changes.
npm install i-graphqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up iGraphQL with auto fields, create an ORM instance, and use it to insert a document with auto-generated fields.
Pin to exact version and test upgrades carefully.
Install graphql-zeus as a dev dependency: npm i -D graphql-zeus
Use import syntax and ensure project is configured for ESM.
Install mongodb >=5.1.0.
npm install i-graphql and use import { iGraphQL } from 'i-graphql'Use import { iGraphQL } from 'i-graphql'npm install -D graphql-zeus