File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export interface DMMFModelDescriptor {
26
26
27
27
export type DMMFModels = Record < string , DMMFModelDescriptor > // key: model name
28
28
29
- const supportedCursorTypes = [ 'Int' , 'String' ]
29
+ const supportedCursorTypes = [ 'Int' , 'String' , 'BigInt' ]
30
30
31
31
export function analyseDMMF ( input : DMMFDocument ) : DMMFModels {
32
32
const dmmf = dmmfDocumentParser . parse ( input )
@@ -40,8 +40,8 @@ export function analyseDMMF(input: DMMFDocument): DMMFModels {
40
40
field =>
41
41
field . isUnique && supportedCursorTypes . includes ( String ( field . type ) )
42
42
)
43
- const cursorField = model . fields . find ( field =>
44
- field . documentation ?. includes ( '@encryption:cursor' )
43
+ const cursorField = model . fields . find (
44
+ field => field . documentation ?. includes ( '@encryption:cursor' )
45
45
)
46
46
if ( cursorField ) {
47
47
// Make sure custom cursor field is valid
You can’t perform that action at this time.
0 commit comments