ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
DT
Drizzle Team
โข
2y ago
โข
2 replies
Arthur
Error with drizzle (sql)
Hey guys
,
I created a index
.ts file to set up neon and drizzle
import
{ neon
, neonConfig
} from
'
@Neondatabase
/serverless
'
;
import
{drizzle
} from
"drizzle
-orm
/neon
-http
"
;
neonConfig
.fetchConnectionCache
= true
if
(
!process
.env
.DATABASE
_URL
)
{
throw new Error
(
'database url not found
'
)
;
}
const sql
= neon
(process
.env
.DATABASE
_URL
)
;
export const db
= drizzle
(sql
)
;
But i have an error on sql in drizzle
(sql
) and can
't figure out the solution
.
"Argument of type
'NeonQueryFunction
<false
, false
>
' is not assignable to parameter of type
'NeonQueryFunction
<boolean
, boolean
>
'
.
Types of property
'transaction
' are incompatible
.
Type
'
<ArrayModeOverride extends boolean
= false
, FullResultsOverride extends boolean
= false
>
(queriesOrFn
: NeonQueryPromise
<false
, false
, any
>
[
]
|
(
(sql
: NeonQueryFunctionInTransaction
<ArrayModeOverride
, FullResultsOverride
>
)
=
> NeonQueryInTransaction
[
]
)
, opts
?
: HTTPTransactionOptions
<
.
.
.
>
| undefined
)
=
> Promise
<
.
.
.
>
' is not assignable to type
'
<ArrayModeOverride extends boolean
= boolean
, FullResultsOverride extends boolean
= boolean
>
(queriesOrFn
: NeonQueryPromise
<boolean
, boolean
, any
>
[
]
|
(
(sql
: NeonQueryFunctionInTransaction
<ArrayModeOverride
, FullResultsOverride
>
)
=
> NeonQueryInTransaction
[
]
)
, opts
?
: HTTPTransactionOptions
<
.
.
.
>
| undefined
)
=
> Promise
.
.
.
'
.
"
Thanks for the support
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
SQL_PARSE_ERROR with Turso + Drizzle
DT
Drizzle Team / help
3y ago
Drizzle kit SQL error
DT
Drizzle Team / help
3y ago
SQLITE3 with drizzle?
DT
Drizzle Team / help
2y ago
Error with Expo Sqlite + Drizzle
DT
Drizzle Team / help
12mo ago