You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
addModelFactoryDeclaration receives three arguments: sourceFile: SourceFile, model: DMMF.Model, and models: DMMF.Model[]. sourceFile is the file where the factory is created, and DMMF.Model represents a single model that is the target for creating a factory, such as Post or User. When additional elements defined in the schema, such as enums, are needed, it is necessary to add arguments. Therefore, instead of Model[], the entire schema, represented by DMMF.DataModel, is added as an argument.
The text was updated successfully, but these errors were encountered:
addModelFactoryDeclaration
receives three arguments:sourceFile: SourceFile
,model: DMMF.Model
, andmodels: DMMF.Model[]
.sourceFile
is the file where the factory is created, andDMMF.Model
represents a single model that is the target for creating a factory, such asPost
orUser
. When additional elements defined in the schema, such as enums, are needed, it is necessary to add arguments. Therefore, instead ofModel[]
, the entire schema, represented byDMMF.DataModel
, is added as an argument.The text was updated successfully, but these errors were encountered: