forked from darrylyeo/blockhead
-
Notifications
You must be signed in to change notification settings - Fork 0
/
houdini.config.js
36 lines (33 loc) · 847 Bytes
/
houdini.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/// <references types="houdini-svelte">
/** @type {import('houdini').ConfigFile} */
const config = {
module: 'esm',
framework: 'kit',
apiUrl: 'https://api.thegraph.com/subgraphs/name/ensdomains/ens',
include: './src/**/*.{svelte,ts,js}', // don't look for .graphql files to avoid parsing the schema at schemaPath
schemaPath: './src/api/ens/ens-subgraph.graphql',
plugins: {
'houdini-svelte': {
client: './src/api/ens/client.ts'
}
},
scalars: {
BigDecimal: {
type: 'string',
unmarshal: (value) => value?.toString(),
marshal: (value) => value
},
BigInt: {
type: 'string',
unmarshal: (value) => value?.toString(),
marshal: (value) => value
},
Bytes: {
type: 'string',
unmarshal: (value) => value?.toString(),
marshal: (value) => value
}
},
schemaPollInterval: null
};
export default config;