-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug?]: Prisma Migrate isn't properly migrating enums #7890
Comments
This is my
```
import { Prisma } from '@prisma/client'
import {
User as PrismaUser,
UserCredential as PrismaUserCredential,
League as PrismaLeague,
} from '@prisma/client'
import {
GraphQLResolveInfo,
GraphQLScalarType,
GraphQLScalarTypeConfig,
} from 'graphql'
import { MergePrismaWithSdlTypes, MakeRelationsOptional } from '@redwoodjs/api'
export type RequiredResolverFn<
export type CreateLeagueInput = { export type League = { export type Mutation = { export type MutationcreateLeagueArgs = { export type MutationdeleteLeagueArgs = { export type MutationupdateLeagueArgs = { /** About the Redwood queries. / /** About the Redwood queries. */ /**
export type UpdateLeagueInput = { type MaybeOrArrayOfMaybe = T | Maybe | Maybe[] export type ResolverTypeWrapper = Promise | T export type Resolver<
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = ( export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = ( export interface SubscriptionSubscriberObject<
resolve?: SubscriptionResolveFn< } export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> { export type SubscriptionObject<
export type SubscriptionResolver<
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = ( export type IsTypeOfResolverFn<T = {}, TContext = {}> = ( export type NextResolverFn = () => Promise export type DirectiveResolverFn<
/** Mapping between all available schema types and the resolvers types */ Mutation: ResolverTypeWrapper<{}> /** Mapping between all available schema types and the resolvers parents */ Mutation: {} export type requireAuthDirectiveArgs = { export type requireAuthDirectiveResolver<
export type skipAuthDirectiveArgs = {} export type skipAuthDirectiveResolver<
export interface BigIntScalarConfig export interface DateScalarConfig export interface DateTimeScalarConfig export interface JSONScalarConfig export interface JSONObjectScalarConfig export type LeagueResolvers<
id: OptArgsResolverFn<ResolversTypes['Int'], ParentType, ContextType> export type LeagueRelationResolvers<
id?: RequiredResolverFn<ResolversTypes['Int'], ParentType, ContextType> export type MutationResolvers<
deleteLeague: Resolver< updateLeague: Resolver< } export type MutationRelationResolvers<
deleteLeague?: RequiredResolverFn< updateLeague?: RequiredResolverFn< } export type QueryResolvers<
leagues: OptArgsResolverFn< redwood: OptArgsResolverFn< } export type QueryRelationResolvers<
leagues?: RequiredResolverFn< redwood?: RequiredResolverFn< } export type RedwoodResolvers<
prismaVersion: OptArgsResolverFn< version: OptArgsResolverFn< __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType> export type RedwoodRelationResolvers<
prismaVersion?: RequiredResolverFn< version?: RequiredResolverFn< __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType> export interface TimeScalarConfig export type Resolvers<ContextType = RedwoodGraphQLContext> = { export type DirectiveResolvers<ContextType = RedwoodGraphQLContext> = {
|
Here is my
```js
Object.defineProperty(exports, "__esModule", { value: true }); const { const Prisma = {} exports.Prisma = Prisma /**
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError; /**
/**
Prisma.NullTypes = { const path = require('path') const fs = require('fs') // some frameworks or bundlers replace or totally remove __dirname // will work in most cases, ie. if the client has not been bundled // if the client has been bundled, we need to look for the folders const dirname = regularDirname || foundDirname || __dirname /**
exports.Prisma.LeagueScalarFieldEnum = makeEnum({ exports.Prisma.QueryMode = makeEnum({ exports.Prisma.SortOrder = makeEnum({ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({ exports.Prisma.UserCredentialScalarFieldEnum = makeEnum({ exports.Prisma.UserScalarFieldEnum = makeEnum({ exports.Prisma.ModelName = makeEnum({ const dmmfString = "{"datamodel":{"enums":[{"name":"Sport","values":[{"name":"BASEBALL","dbName":null},{"name":"BASKETBALL","dbName":null},{"name":"DODGEBALL","dbName":null},{"name":"FOOTBALL","dbName":null},{"name":"LACROSSE","dbName":null},{"name":"SOFTBALL","dbName":null}],"dbName":null}],"models":[{"name":"User","dbName":null,"fields":[{"name":"id","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":true,"isReadOnly":false,"hasDefaultValue":true,"type":"Int","default":{"name":"autoincrement","args":[]},"isGenerated":false,"isUpdatedAt":false},{"name":"username","kind":"scalar","isList":false,"isRequired":true,"isUnique":true,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"email","kind":"scalar","isList":false,"isRequired":true,"isUnique":true,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"hashedPassword","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"salt","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"resetToken","kind":"scalar","isList":false,"isRequired":false,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"resetTokenExpiresAt","kind":"scalar","isList":false,"isRequired":false,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"DateTime","isGenerated":false,"isUpdatedAt":false},{"name":"webAuthnChallenge","kind":"scalar","isList":false,"isRequired":false,"isUnique":true,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"credentials","kind":"object","isList":true,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"UserCredential","relationName":"UserToUserCredential","relationFromFields":[],"relationToFields":[],"isGenerated":false,"isUpdatedAt":false}],"primaryKey":null,"uniqueFields":[],"uniqueIndexes":[],"isGenerated":false},{"name":"UserCredential","dbName":null,"fields":[{"name":"id","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":true,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"userId","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":true,"hasDefaultValue":false,"type":"Int","isGenerated":false,"isUpdatedAt":false},{"name":"user","kind":"object","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"User","relationName":"UserToUserCredential","relationFromFields":["userId"],"relationToFields":["id"],"isGenerated":false,"isUpdatedAt":false},{"name":"publicKey","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"Bytes","isGenerated":false,"isUpdatedAt":false},{"name":"transports","kind":"scalar","isList":false,"isRequired":false,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"counter","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"BigInt","isGenerated":false,"isUpdatedAt":false}],"primaryKey":null,"uniqueFields":[],"uniqueIndexes":[],"isGenerated":false},{"name":"League","dbName":null,"fields":[{"name":"id","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":true,"isReadOnly":false,"hasDefaultValue":true,"type":"Int","default":{"name":"autoincrement","args":[]},"isGenerated":false,"isUpdatedAt":false},{"name":"name","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"description","kind":"scalar","isList":false,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"String","isGenerated":false,"isUpdatedAt":false},{"name":"sport","kind":"enum","isList":true,"isRequired":true,"isUnique":false,"isId":false,"isReadOnly":false,"hasDefaultValue":false,"type":"Sport","isGenerated":false,"isUpdatedAt":false}],"primaryKey":null,"uniqueFields":[],"uniqueIndexes":[],"isGenerated":false}],"types":[]},"mappings":{"modelOperations":[{"model":"User","plural":"users","findUnique":"findUniqueUser","findUniqueOrThrow":"findUniqueUserOrThrow","findFirst":"findFirstUser","findFirstOrThrow":"findFirstUserOrThrow","findMany":"findManyUser","create":"createOneUser","createMany":"createManyUser","delete":"deleteOneUser","update":"updateOneUser","deleteMany":"deleteManyUser","updateMany":"updateManyUser","upsert":"upsertOneUser","aggregate":"aggregateUser","groupBy":"groupByUser"},{"model":"UserCredential","plural":"userCredentials","findUnique":"findUniqueUserCredential","findUniqueOrThrow":"findUniqueUserCredentialOrThrow","findFirst":"findFirstUserCredential","findFirstOrThrow":"findFirstUserCredentialOrThrow","findMany":"findManyUserCredential","create":"createOneUserCredential","createMany":"createManyUserCredential","delete":"deleteOneUserCredential","update":"updateOneUserCredential","deleteMany":"deleteManyUserCredential","updateMany":"updateManyUserCredential","upsert":"upsertOneUserCredential","aggregate":"aggregateUserCredential","groupBy":"groupByUserCredential"},{"model":"League","plural":"leagues","findUnique":"findUniqueLeague","findUniqueOrThrow":"findUniqueLeagueOrThrow","findFirst":"findFirstLeague","findFirstOrThrow":"findFirstLeagueOrThrow","findMany":"findManyLeague","create":"createOneLeague","createMany":"createManyLeague","delete":"deleteOneLeague","update":"updateOneLeague","deleteMany":"deleteManyLeague","updateMany":"updateManyLeague","upsert":"upsertOneLeague","aggregate":"aggregateLeague","groupBy":"groupByLeague"}],"otherOperations":{"read":[],"write":["executeRaw","queryRaw"]}}}" /**
const { warnEnvConflicts } = require('@prisma/client/runtime/library') warnEnvConflicts({ const PrismaClient = getPrismaClient(config) path.join(__dirname, "query_engine-windows.dll.node");
|
```ts
/**
import * as runtime from '@prisma/client/runtime/library'; = P extends Promise ? R : P /**
*/ /**
*/ /**
*/ /**
// Based on export const Sport: { export type Sport = (typeof Sport)[keyof typeof Sport] /**
constructor(optionsArg ?: Prisma.Subset<T, Prisma.PrismaClientOptions>); /**
/**
/**
/**
/**
/**
/**
/**
$transaction(fn: (prisma: Omit<this, "$connect" | "$disconnect" | "$on" | "$transaction" | "$use">) => Promise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): Promise
/**
/**
export namespace Prisma { export type PrismaPromise = runtime.Types.Public.PrismaPromise /**
/**
/**
export type DecimalJsLike = runtime.DecimalJsLike /**
/**
export const prismaVersion: PrismaVersion /**
/**
/**
/**
/**
/**
/**
/**
} /**
/**
/**
type SelectAndInclude = { /**
/**
/**
export type Enumerable = T | Array; export type RequiredKeys = { export type TruthyKeys = keyof { export type TrueKeys = TruthyKeys<Prisma__Pick<T, RequiredKeys>> /**
/**
/**
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never }; /**
/**
/**
/**
type __Either<O extends object, K extends Key> = Omit<O, K> & type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>> type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>> type _Either<
type Either<
export type Union = any type PatchUndefined<O extends object, O1 extends object> = { /** Helper Types for "Merge" **/ export type Overwrite<O extends object, O1 extends object> = { type _Merge = IntersectOf<Overwrite<U, { type Key = string | number | symbol; export type ComputeRaw = A extends Function ? A : { export type OptionalFlat = { type _Record<K extends keyof any, T> = { // cause typescript not to expand types and preserve names // this type assumes the passed object is entirely optional type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never; export type Strict = ComputeRaw<_Strict>; export type Merge = ComputeRaw<_Merge<Strict>>; /** // /** /** export type Not = { export type Extends<A1 extends any, A2 extends any> = [A1] extends [never] export type Has<U extends Union, U1 extends Union> = Not< export type Or<B1 extends Boolean, B2 extends Boolean> = { export type Keys = U extends unknown ? keyof U : never type Cast<A, B> = A extends B ? A : B; export const type: unique symbol; export function validator(): /**
export type GetScalarType<T, O> = O extends object ? { type FieldPaths<
type GetHavingFields = { /**
/**
/**
export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType> type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType> export const ModelName: { export type ModelName = (typeof ModelName)[keyof typeof ModelName] export type Datasources = { export type DefaultPrismaClient = PrismaClient
export interface PrismaClientOptions {
} /* Types for Logging */ export type GetLogType<T extends LogLevel | LogDefinition> = T extends LogDefinition ? T['emit'] extends 'event' ? T['level'] : never : never export type QueryEvent = { export type LogEvent = { export type PrismaAction = /**
/**
// tested in getLogLevel.test.ts /**
export type Datasource = { /**
/**
export type UserCountOutputType = { export type UserCountOutputTypeSelect = { export type UserCountOutputTypeGetPayload<S extends boolean | null | undefined | UserCountOutputTypeArgs> = // Custom InputTypes /**
/**
/**
export type AggregateUser = { export type UserAvgAggregateOutputType = { export type UserSumAggregateOutputType = { export type UserMinAggregateOutputType = { export type UserMaxAggregateOutputType = { export type UserCountAggregateOutputType = { export type UserAvgAggregateInputType = { export type UserSumAggregateInputType = { export type UserMinAggregateInputType = { export type UserMaxAggregateInputType = { export type UserCountAggregateInputType = { export type UserAggregateArgs = { export type GetUserAggregateType = { export type UserGroupByArgs = { export type UserGroupByOutputType = { type GetUserGroupByPayload = Prisma.PrismaPromise< export type UserSelect = { export type UserInclude = { export type UserGetPayload<S extends boolean | null | undefined | UserArgs> = type UserCountArgs = export interface UserDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
} /**
} // Custom InputTypes /**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
export type AggregateUserCredential = { export type UserCredentialAvgAggregateOutputType = { export type UserCredentialSumAggregateOutputType = { export type UserCredentialMinAggregateOutputType = { export type UserCredentialMaxAggregateOutputType = { export type UserCredentialCountAggregateOutputType = { export type UserCredentialAvgAggregateInputType = { export type UserCredentialSumAggregateInputType = { export type UserCredentialMinAggregateInputType = { export type UserCredentialMaxAggregateInputType = { export type UserCredentialCountAggregateInputType = { export type UserCredentialAggregateArgs = { export type GetUserCredentialAggregateType = { export type UserCredentialGroupByArgs = { export type UserCredentialGroupByOutputType = { type GetUserCredentialGroupByPayload = Prisma.PrismaPromise< export type UserCredentialSelect = { export type UserCredentialInclude = { export type UserCredentialGetPayload<S extends boolean | null | undefined | UserCredentialArgs> = type UserCredentialCountArgs = export interface UserCredentialDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
} /**
} // Custom InputTypes /**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
export type AggregateLeague = { export type LeagueAvgAggregateOutputType = { export type LeagueSumAggregateOutputType = { export type LeagueMinAggregateOutputType = { export type LeagueMaxAggregateOutputType = { export type LeagueCountAggregateOutputType = { export type LeagueAvgAggregateInputType = { export type LeagueSumAggregateInputType = { export type LeagueMinAggregateInputType = { export type LeagueMaxAggregateInputType = { export type LeagueCountAggregateInputType = { export type LeagueAggregateArgs = { export type GetLeagueAggregateType = { export type LeagueGroupByArgs = { export type LeagueGroupByOutputType = { type GetLeagueGroupByPayload = Prisma.PrismaPromise< export type LeagueSelect = { export type LeagueGetPayload<S extends boolean | null | undefined | LeagueArgs> = type LeagueCountArgs = export interface LeagueDelegate<GlobalRejectSettings extends Prisma.RejectOnNotFound | Prisma.RejectPerOperation | false | undefined> {
} /**
} // Custom InputTypes /**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
/**
// Based on export const LeagueScalarFieldEnum: { export type LeagueScalarFieldEnum = (typeof LeagueScalarFieldEnum)[keyof typeof LeagueScalarFieldEnum] export const QueryMode: { export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] export const SortOrder: { export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] export const TransactionIsolationLevel: { export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] export const UserCredentialScalarFieldEnum: { export type UserCredentialScalarFieldEnum = (typeof UserCredentialScalarFieldEnum)[keyof typeof UserCredentialScalarFieldEnum] export const UserScalarFieldEnum: { export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] /**
export type UserWhereInput = { export type UserOrderByWithRelationInput = { export type UserWhereUniqueInput = { export type UserOrderByWithAggregationInput = { export type UserScalarWhereWithAggregatesInput = { export type UserCredentialWhereInput = { export type UserCredentialOrderByWithRelationInput = { export type UserCredentialWhereUniqueInput = { export type UserCredentialOrderByWithAggregationInput = { export type UserCredentialScalarWhereWithAggregatesInput = { export type LeagueWhereInput = { export type LeagueOrderByWithRelationInput = { export type LeagueWhereUniqueInput = { export type LeagueOrderByWithAggregationInput = { export type LeagueScalarWhereWithAggregatesInput = { export type UserCreateInput = { export type UserUncheckedCreateInput = { export type UserUpdateInput = { export type UserUncheckedUpdateInput = { export type UserCreateManyInput = { export type UserUpdateManyMutationInput = { export type UserUncheckedUpdateManyInput = { export type UserCredentialCreateInput = { export type UserCredentialUncheckedCreateInput = { export type UserCredentialUpdateInput = { export type UserCredentialUncheckedUpdateInput = { export type UserCredentialCreateManyInput = { export type UserCredentialUpdateManyMutationInput = { export type UserCredentialUncheckedUpdateManyInput = { export type LeagueCreateInput = { export type LeagueUncheckedCreateInput = { export type LeagueUpdateInput = { export type LeagueUncheckedUpdateInput = { export type LeagueCreateManyInput = { export type LeagueUpdateManyMutationInput = { export type LeagueUncheckedUpdateManyInput = { export type IntFilter = { export type StringFilter = { export type StringNullableFilter = { export type DateTimeNullableFilter = { export type UserCredentialListRelationFilter = { export type UserCredentialOrderByRelationAggregateInput = { export type UserCountOrderByAggregateInput = { export type UserAvgOrderByAggregateInput = { export type UserMaxOrderByAggregateInput = { export type UserMinOrderByAggregateInput = { export type UserSumOrderByAggregateInput = { export type IntWithAggregatesFilter = { export type StringWithAggregatesFilter = { export type StringNullableWithAggregatesFilter = { export type DateTimeNullableWithAggregatesFilter = { export type BytesFilter = { export type BigIntFilter = { export type UserRelationFilter = { export type UserCredentialCountOrderByAggregateInput = { export type UserCredentialAvgOrderByAggregateInput = { export type UserCredentialMaxOrderByAggregateInput = { export type UserCredentialMinOrderByAggregateInput = { export type UserCredentialSumOrderByAggregateInput = { export type BytesWithAggregatesFilter = { export type BigIntWithAggregatesFilter = { export type EnumSportNullableListFilter = { export type LeagueCountOrderByAggregateInput = { export type LeagueAvgOrderByAggregateInput = { export type LeagueMaxOrderByAggregateInput = { export type LeagueMinOrderByAggregateInput = { export type LeagueSumOrderByAggregateInput = { export type UserCredentialCreateNestedManyWithoutUserInput = { export type UserCredentialUncheckedCreateNestedManyWithoutUserInput = { export type StringFieldUpdateOperationsInput = { export type NullableStringFieldUpdateOperationsInput = { export type NullableDateTimeFieldUpdateOperationsInput = { export type UserCredentialUpdateManyWithoutUserNestedInput = { export type IntFieldUpdateOperationsInput = { export type UserCredentialUncheckedUpdateManyWithoutUserNestedInput = { export type UserCreateNestedOneWithoutCredentialsInput = { export type BytesFieldUpdateOperationsInput = { export type BigIntFieldUpdateOperationsInput = { export type UserUpdateOneRequiredWithoutCredentialsNestedInput = { export type LeagueCreatesportInput = { export type LeagueUpdatesportInput = { export type NestedIntFilter = { export type NestedStringFilter = { export type NestedStringNullableFilter = { export type NestedDateTimeNullableFilter = { export type NestedIntWithAggregatesFilter = { export type NestedFloatFilter = { export type NestedStringWithAggregatesFilter = { export type NestedStringNullableWithAggregatesFilter = { export type NestedIntNullableFilter = { export type NestedDateTimeNullableWithAggregatesFilter = { export type NestedBytesFilter = { export type NestedBigIntFilter = { export type NestedBytesWithAggregatesFilter = { export type NestedBigIntWithAggregatesFilter = { export type UserCredentialCreateWithoutUserInput = { export type UserCredentialUncheckedCreateWithoutUserInput = { export type UserCredentialCreateOrConnectWithoutUserInput = { export type UserCredentialCreateManyUserInputEnvelope = { export type UserCredentialUpsertWithWhereUniqueWithoutUserInput = { export type UserCredentialUpdateWithWhereUniqueWithoutUserInput = { export type UserCredentialUpdateManyWithWhereWithoutUserInput = { export type UserCredentialScalarWhereInput = { export type UserCreateWithoutCredentialsInput = { export type UserUncheckedCreateWithoutCredentialsInput = { export type UserCreateOrConnectWithoutCredentialsInput = { export type UserUpsertWithoutCredentialsInput = { export type UserUpdateWithoutCredentialsInput = { export type UserUncheckedUpdateWithoutCredentialsInput = { export type UserCredentialCreateManyUserInput = { export type UserCredentialUpdateWithoutUserInput = { export type UserCredentialUncheckedUpdateWithoutUserInput = { export type UserCredentialUncheckedUpdateManyWithoutCredentialsInput = { /**
export type BatchPayload = { /**
|
Is |
It works fine for me. |
I just tried it on my Mac (Redwood v5-canary and prisma 4.11) and it works. (steps: add to schema, Could you confirm your version of Prisma? It should be 4.11 on Redwood v4 Because you're on Windows, I do wonder if there's an OS-specific bug. If so, the best place to get help with this will be the Prisma repo: https://github.com/prisma/prisma Doing a quick search for "ENUM" showed a few recent issues. Keep us posted here. We can try and nudge things from our end. Note: there's a problem with Enum and GraphQL type gen, but I don't think that's what you're dealing with here: #6025 |
What's not working?
I have an enum in my schema but it's not being recognized when I try to import it. Inside of /api/src/services/sportOptions/sportOptions.ts when I use this line:
I get the error:
Module '"@prisma/client"' has no exported member 'Sport'.
How do we reproduce the bug?
schema.prisma
with an enum (this is the one I made):yarn rw prisma migrate dev
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: