MCPcopy Index your code
hub / github.com/MichalLytek/typegraphql-prisma

github.com/MichalLytek/typegraphql-prisma @v0.28.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.28.0 ↗ · + Follow
14,808 symbols 40,276 edges 1,869 files 397 documented · 3% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

integration logo

discord npm

TypeGraphQL & Prisma integration

Prisma generator to emit TypeGraphQL types and CRUD resolvers from your Prisma schema.

https://prisma.typegraphql.com

Documentation

The documentation, installation guide, detailed description of the API and all of its features is available on the website.

Examples

You can check out some usage examples on this repo:

https://github.com/MichalLytek/typegraphql-prisma/blob/main/examples/Readme.md

Feedback

Currently released version 0.x is just a preview of the upcoming integration. For now it lacks some customization option - picking models or fields of object types to expose in the schema, hiding input fields as well as picking exposed args fields. However, the base functionality is working well, so I strongly encourage you to give it a try and play with it.

Any feedback about the developers experience or ideas about new features or enhancements are very welcome - please feel free to put your two cents by using the GitHub Discussions feature:

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Future of this project

This project is not sponsored by Prisma anymore, so there will be provided only bug fixes and Prisma compatibility upgrades. You can read more about this in the GitHub issue #385.

Let's keep typegraphql-prisma alive together! 💪

Community

Extension points exported contracts — how you extend this code

JsonArray (Interface)
* From https://github.com/sindresorhus/type-fest/ * Matches a JSON array.
tests/helpers/prisma-client-mock.d.ts
Context (Interface)
(no doc)
experiments/mongodb/index.ts
Context (Interface)
(no doc)
experiments/postgres/index.ts
ExternalGeneratorOptions (Interface)
(no doc)
src/generator/options.ts
Context (Interface)
(no doc)
examples/4-nest-js/index.ts
Context (Interface)
(no doc)
examples/1-prototyping/index.ts
Context (Interface)
(no doc)
examples/3-picking-actions/index.ts
Context (Interface)
(no doc)
examples/2-basic/index.ts

Core symbols most depended-on inside this repo

generateCodeFromSchema
called by 145
tests/helpers/generate-code.ts
generateArtifactsDirPath
called by 26
tests/helpers/artifacts-dir.ts
shouldGenerateBlock
called by 15
src/generator/dmmf/dmmf-document.ts
getDirectoryStructureString
called by 11
tests/helpers/structure.ts
createReadGeneratedFile
called by 11
tests/helpers/read-file.ts
getModelTypeName
called by 10
src/generator/dmmf/dmmf-document.ts
parseStringBoolean
called by 10
src/cli/helpers.ts
generateTypeGraphQLImport
called by 8
src/generator/imports.ts

Shape

Function 7,031
Method 3,753
Class 3,490
Interface 460
Enum 74

Languages

TypeScript100%

Modules by API surface

experiments/postgres/prisma/generated/client/runtime/index.js1,160 symbols
experiments/mongodb/prisma/generated/client/runtime/index.js1,160 symbols
experiments/postgres/prisma/generated/client/runtime/library.js633 symbols
experiments/mongodb/prisma/generated/client/runtime/library.js633 symbols
experiments/postgres/prisma/generated/client/runtime/react-native.js589 symbols
experiments/mongodb/prisma/generated/client/runtime/react-native.js589 symbols
experiments/postgres/prisma/generated/client/runtime/edge.js559 symbols
experiments/mongodb/prisma/generated/client/runtime/edge.js559 symbols
experiments/postgres/prisma/generated/client/runtime/edge-esm.js558 symbols
experiments/mongodb/prisma/generated/client/runtime/edge-esm.js558 symbols
experiments/postgres/prisma/generated/client/runtime/wasm.js487 symbols
experiments/mongodb/prisma/generated/client/runtime/wasm.js487 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add typegraphql-prisma \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact