Created
April 25, 2024 19:37
-
-
Save PaulieScanlon/352271c437979abceb1334651f47b654 to your computer and use it in GitHub Desktop.
Example of typed query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { Users } from '../../kysely-db'; | |
const response = await client.query<Users[]>('SELECT * FROM users'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment