GraphQL ObjectId Scalar

JSON →
library 0.1.2 ·javascript
verified Jun 5, 2026

A GraphQL scalar type for MongoDB ObjectId, packaged as a simple npm module. Current version 0.1.2 (no recent releases). It provides serialize, parseValue, and parseLiteral functions to handle ObjectId in GraphQL schemas. Lightweight with no dependencies beyond graphql peer dependency. Differentiator: minimal implementation focused solely on ObjectId, unlike graphql-type-json which is broader. Suitable for Node.js >=6 with any GraphQL version.