Skip to content

Commit

Permalink
Fix the codegen path for the GraphQL context objcet (#8585)
Browse files Browse the repository at this point in the history
  • Loading branch information
orta authored Jun 12, 2023
1 parent 1bc5717 commit b4585df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exports[`Generate gql typedefs api 1`] = `
import { MergePrismaWithSdlTypes, MakeRelationsOptional } from '@redwoodjs/api'
import { PrismaModelOne as PrismaPrismaModelOne, PrismaModelTwo as PrismaPrismaModelTwo, Post as PrismaPost, Todo as PrismaTodo } from '@prisma/client'
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
import { RedwoodGraphQLContext } from '@redwoodjs/graphql-server/dist/functions/types';
import { RedwoodGraphQLContext } from '@redwoodjs/graphql-server/dist/types';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/src/generate/graphqlCodeGen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function getPluginConfig(side: CodegenSide) {
// Look at type or source https://shrtm.nu/2BA0 for possible config, not well documented
resolvers: true,
},
contextType: `@redwoodjs/graphql-server/dist/functions/types#RedwoodGraphQLContext`,
contextType: `@redwoodjs/graphql-server/dist/types#RedwoodGraphQLContext`,
}

return pluginConfig
Expand Down

0 comments on commit b4585df

Please sign in to comment.