We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 216d968 commit daa865fCopy full SHA for daa865f
examples/with-fauna/lib/fauna.ts
@@ -1,11 +1,5 @@
1
import 'server-only'
2
-import {
3
- Client,
4
- fql,
5
- QuerySuccess,
6
- QueryValueObject,
7
- QueryFailure,
8
-} from 'fauna'
+import { Client, fql, QuerySuccess, QueryValueObject } from 'fauna'
9
10
const client = new Client({
11
secret: process.env.FAUNA_CLIENT_SECRET,
@@ -17,7 +11,7 @@ export const getAllEntries = async () => {
17
Entry.all()
18
12
`)
19
13
return dbresponse.data.data
20
- } catch (error: QueryFailure | any) {
14
+ } catch (error: any) {
21
15
throw new Error(error.message)
22
16
}
23
@@ -31,7 +25,7 @@ export const createEntry = async (name: string, message: string) => {
31
25
createdAt: Time.now(),
32
26
})`)
33
27
return dbresponse.data
34
28
35
29
36
30
37
0 commit comments