{"_id":"@alichry/graphql-type-object-id","_rev":"6-cd526c2e394670ea8da1841721c4a2fe","time":{"0.0.4":"2021-10-21T14:59:18.666Z","created":"2021-10-30T11:32:25.076Z","0.0.5":"2021-10-30T11:32:25.279Z","modified":"2022-04-04T12:54:19.120Z","0.0.6":"2021-10-30T11:35:50.442Z"},"name":"@alichry/graphql-type-object-id","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.5":{"name":"@alichry/graphql-type-object-id","version":"0.0.5","description":"A graphql scalar type for MongoDB ObjectId.","main":"./dist","types":"./dist","author":{"name":"Alessandro Magionami","email":"alessandro.magionami@gmail.com"},"license":"MIT","scripts":{"prebuild":"npm run lint && npm run clean-build","build":"tsc","clean-build":"rimraf ./dist && mkdir dist","update":"npx npm-check -u","prettier":"prettier --loglevel warn --write \"src/**/*.{ts,tsx}\" \"test/**/*.ts\"","prelint":"npm run prettier","lint":"eslint --fix --ext .ts --no-error-on-unmatched-pattern \"src/**/*.ts\" \"test/**/*.ts\"","prepublishOnly":"npm run build","test":"tap test/**/*.test.ts","test:watch":"chokidar \"src/**/*.ts\" \"test/**/*.test.ts\" -c \"npm run test\" --initial","test:report":"npm run test | tee out.tap","test:reporter":"tap-mocha-reporter xunit < out.tap > junit-testresults.xml","coverage":"tap --cov --coverage-report=html test"},"keywords":[],"repository":{"type":"git","url":"git+https://github.com/alichry/graphql-type-object-id.git"},"bugs":{"url":"https://github.com/alemagio/graphql-type-object-id/issues"},"homepage":"https://github.com/alemagio/graphql-type-object-id#readme","devDependencies":{"@graphql-tools/schema":"^8.1.0","@types/node":"^16.6.1","@types/tap":"^15.0.5","@typescript-eslint/eslint-plugin":"^4.29.1","@typescript-eslint/parser":"^4.29.1","chokidar-cli":"^3.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","fox1t-tsconfig":"^0.2.0","graphql":"^15.5.1","graphql-tag":"^2.12.5","graphql-tools":"^8.1.0","husky":"^7.0.1","mongodb":"^4.1.0","prettier":"^2.3.2","rimraf":"^3.0.2","tap":"^15.0.9","tap-mocha-reporter":"^5.0.1","ts-node":"^10.2.0","typescript":"^4.3.5"},"husky":{"hooks":{"pre-commit":"npm run test && npm run build"}},"peerDependencies":{"graphql":"15.x","mongodb":"4.x"},"directories":{"test":"test"},"gitHead":"c155868abe8bb5cbbf05afaf21d69e9074dd3bcb","_id":"@alichry/graphql-type-object-id@0.0.5","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-FFLPmSs1HKXKlf6iP0odQ5ipCAmREeu4CZoSqNf1pPiDtuCJLQFDBxmGEIEJj8nwJryj1VQeM7nlB6kMtFuIug==","shasum":"b20cb66eb788ee9f2c19c41c6d0bc227e0110940","tarball":"https://registry.npmjs.org/@alichry/graphql-type-object-id/-/graphql-type-object-id-0.0.5.tgz","fileCount":8,"unpackedSize":6586,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNTIhxbhhV5PJrpv9lcl2aTJrkNgrYfQkqJ2m3PeZRUQIhAL0iSei+Zn1I8yGgy4nPY0gB2294eSCEl2tlWskE0H1G"}]},"_npmUser":{"name":"alichry","email":"ctcmnpm@alicherry.net"},"maintainers":[{"name":"alichry","email":"ctcmnpm@alicherry.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-type-object-id_0.0.5_1635593545139_0.5639428615593092"},"_hasShrinkwrap":false},"0.0.6":{"name":"@alichry/graphql-type-object-id","version":"0.0.6","description":"A graphql scalar type for MongoDB ObjectId.","main":"./dist","types":"./dist","author":{"name":"Alessandro Magionami","email":"alessandro.magionami@gmail.com"},"license":"MIT","scripts":{"prebuild":"npm run lint && npm run clean-build","build":"tsc","clean-build":"rimraf ./dist && mkdir dist","update":"npx npm-check -u","prettier":"prettier --loglevel warn --write \"src/**/*.{ts,tsx}\" \"test/**/*.ts\"","prelint":"npm run prettier","lint":"eslint --fix --ext .ts --no-error-on-unmatched-pattern \"src/**/*.ts\" \"test/**/*.ts\"","prepublishOnly":"npm run build","test":"tap test/**/*.test.ts","test:watch":"chokidar \"src/**/*.ts\" \"test/**/*.test.ts\" -c \"npm run test\" --initial","test:report":"npm run test | tee out.tap","test:reporter":"tap-mocha-reporter xunit < out.tap > junit-testresults.xml","coverage":"tap --cov --coverage-report=html test"},"keywords":[],"repository":{"type":"git","url":"git+https://github.com/alichry/graphql-type-object-id.git"},"bugs":{"url":"https://github.com/alemagio/graphql-type-object-id/issues"},"homepage":"https://github.com/alemagio/graphql-type-object-id#readme","devDependencies":{"@graphql-tools/schema":"^8.1.0","@types/node":"^16.6.1","@types/tap":"^15.0.5","@typescript-eslint/eslint-plugin":"^4.29.1","@typescript-eslint/parser":"^4.29.1","chokidar-cli":"^3.0.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-plugin-prettier":"^3.4.0","fox1t-tsconfig":"^0.2.0","graphql":"^15.5.1","graphql-tag":"^2.12.5","graphql-tools":"^8.1.0","husky":"^7.0.1","mongodb":"^4.1.0","prettier":"^2.3.2","rimraf":"^3.0.2","tap":"^15.0.9","tap-mocha-reporter":"^5.0.1","ts-node":"^10.2.0","typescript":"^4.3.5"},"husky":{"hooks":{"pre-commit":"npm run test && npm run build"}},"peerDependencies":{"graphql":"15.x","mongodb":"4.x"},"directories":{"test":"test"},"gitHead":"ff16ab32bd744771a10b7a1412fd1dbfb1530096","_id":"@alichry/graphql-type-object-id@0.0.6","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-JpnC0lG/xt7+142hH5Y55a3v+XplkPz5Y5lCn7EP7+wLaHWP5ZQKNdO6eCIXjTjx3cCw2CxWmgApy8nu64SOgg==","shasum":"73b5202183580b2163a768254b426f0cc958682c","tarball":"https://registry.npmjs.org/@alichry/graphql-type-object-id/-/graphql-type-object-id-0.0.6.tgz","fileCount":8,"unpackedSize":6586,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhxJJxCRA9TVsSAnZWagAA5OYP/1YDI8CcQsMbfcc5aWsN\nqfGQFElCVhqA9GyADHym95gz3WCc06awwSodn4OuCmFKs0hWYODdxzDhhhXk\nhkWHgmUFXUnfGC8hEuI2yRdrbn1jmhPezt6d2Argajlw4KaJwXzrvCbRbyDl\nKqiTo7PGB9yQGVz+/C03suUz1TCBk8YM3ee37TMzF8w7JxQpdPeHDN3mURyL\n+wy+FlmZkthFFcUz5qAWErqBjJ26BasotFnJnYRYiVPHkmQdaUXt6gabanNG\nbzewpDJdOYRIVyFpzmPBX2/st/SliD2b0h/M2RWaPlcQJB2pzuiDSky1Kg5S\nNRm3cL3vbBqAIbA6D2+f9vALOgFFtpuM7kTvSj9qpJ+zM2FApMVTYZIlVKl5\nQ7fjA6H/USSACYm0blS1Zm1xJDOq+pSp4YBaKmWSgAryFg8meCBAbIL+acqf\njPCwfv2y8Ab3M1C1RhzdS3osqBxWiPKw/DfzDKAtm5ytdQsYcOUHhY8SVyBF\np9FdijNkjMHNN5X2tnAxTi7jws/8BDBUbxG3lSLVs2J8K88aFAd0+tWuIz6x\ngo+DIwlVHIAyxDfadZyhlankQ/E2K9UacZvLFxnCcF2ukcuzunz03GBU8rgt\nGRlMVyF6IRW09BdSoxDV9NdghMLmrd+AixWgbMG4ynzclgsn9LQ0NV8G4kHM\n0xyO\r\n=omEl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK48lllaH8ZhbGbtS8VbFG323j5rJuqDV4FORBJ+82FgIhAIZzIpPqx5CjoboXEGFcIHuG7zIB5iM1zYWfEGrXSWSj"}]},"_npmUser":{"name":"alichry","email":"ctcmnpm@alicherry.net"},"maintainers":[{"name":"alichry","email":"ctcmnpm@alicherry.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-type-object-id_0.0.6_1635593750310_0.12273352880043609"},"_hasShrinkwrap":false}},"maintainers":[{"name":"alichry","email":"ctcmnpm@alicherry.net"}],"description":"A graphql scalar type for MongoDB ObjectId.","homepage":"https://github.com/alemagio/graphql-type-object-id#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/alichry/graphql-type-object-id.git"},"author":{"name":"Alessandro Magionami","email":"alessandro.magionami@gmail.com"},"bugs":{"url":"https://github.com/alemagio/graphql-type-object-id/issues"},"license":"MIT","readme":"[![built with typescript-lib-starter](https://img.shields.io/badge/built%20with-typescript--lib--starter%20-blue.svg)](https://github.com/fox1t/typescript-lib-starter)\n\n# graphql-type-object-id\n\nMongoDB ObjectId scalar type for [GraphQL.js](https://github.com/graphql/graphql-js).\n\n## Installation\n\n```bash\n$ npm i graphql-type-object-id\n```\nOr\n\n```bash\n$ yarn add graphql-type-object-id\n```\n## Usage\n\nImport the type:\n\n```js\nimport GraphQLObjectId from 'graphql-type-object-id';\n```\n\nOr\n\n```js\nimport { GraphQLObjectId } from 'graphql-type-object-id';\n```\n\n### In your schema\n\nYou can use this in a programmatically-constructed schema as with any other scalar type:\n\n```js\nimport { makeExecutableSchema } from '@graphql-tools/schema';\nimport GraphQLObjectId from 'graphql-type-object-id';\n\nconst typeDefs = `\n  scalar ObjectId\n  # ...\n`;\n\nconst resolvers = {\n  ObjectId: GraphQLObjectId,\n};\n\nexport default makeExecutableSchema({ typeDefs, resolvers });\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}