Could you provide an example for node-pg-types with the "import" statement and not "require" so that type translators get registered for node-postgres?
Asked
Active
Viewed 312 times
2 Answers
0
As it turns out it can be done as (from github):
import { builtins, getTypeParser } from 'pg-types'

Andris
- 4,392
- 2
- 20
- 16