Skip to content

Drop graphql tools prisma loader #10400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brave-meals-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/cli': major
---

Drop @graphql-tools/prisma-loader
1 change: 0 additions & 1 deletion packages/graphql-codegen-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"@graphql-tools/graphql-file-loader": "^8.0.0",
"@graphql-tools/json-file-loader": "^8.0.0",
"@graphql-tools/load": "^8.1.0",
"@graphql-tools/prisma-loader": "^8.0.0",
"@graphql-tools/url-loader": "^8.0.0",
"@graphql-tools/utils": "^10.0.0",
"@whatwg-node/fetch": "^0.10.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/graphql-codegen-cli/src/graphql-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { ApolloEngineLoader } from '@graphql-tools/apollo-engine-loader';
import { CodeFileLoader } from '@graphql-tools/code-file-loader';
import { GitLoader } from '@graphql-tools/git-loader';
import { GithubLoader } from '@graphql-tools/github-loader';
import { PrismaLoader } from '@graphql-tools/prisma-loader';
import { GraphQLConfig, GraphQLExtensionDeclaration, loadConfig } from 'graphql-config';

export const CodegenExtension: GraphQLExtensionDeclaration = (api: any) => {
Expand All @@ -17,7 +16,6 @@ export const CodegenExtension: GraphQLExtensionDeclaration = (api: any) => {
api.loaders.schema.register(new GitLoader());
api.loaders.schema.register(new GithubLoader());
api.loaders.schema.register(new ApolloEngineLoader());
api.loaders.schema.register(new PrismaLoader());
// Documents
api.loaders.documents.register(
new CodeFileLoader({
Expand Down
2 changes: 0 additions & 2 deletions packages/graphql-codegen-cli/src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
NoTypeDefinitionsFound,
UnnormalizedTypeDefPointer,
} from '@graphql-tools/load';
import { PrismaLoader } from '@graphql-tools/prisma-loader';
import { UrlLoader } from '@graphql-tools/url-loader';
import { GraphQLError, GraphQLSchema } from 'graphql';

Expand Down Expand Up @@ -41,7 +40,6 @@ export async function loadSchema(
new JsonFileLoader(),
new UrlLoader(),
new ApolloEngineLoader(),
new PrismaLoader(),
];

const schema = await loadSchemaToolkit(schemaPointers, {
Expand Down
Loading