![]() ![]() Prisma uses the following naming convention: tablename.field1_field2_field3_unique)Īllows you to specify a maximum length for the subpart of the value to be indexed. The name of the index in the underlying database (Prisma generates an index name that respects identifier length limits if you do not specify a name. The name that Prisma Client will expose for the argument covering all fields, e.g. ![]() The underlying ID field name is always _id, and must be mapped with be defined on any scalar field ( String, Int, enum) unless you want to use ObjectId in your databaseĪnnotate your field with list of field names - for example, Remarks GeneralĬan be annotated with a value that uses functions to auto-generate an ID:Ĭan be defined on any scalar field ( String, Int, enum)Ĭorresponding database type: Any valid BSON type, except arrays Note: The leading underscore in a signature means the argument name can be omitted. ![]() Arguments in attributes are always named, but in most cases the argument name can be omitted.
0 Comments
Leave a Reply. |