generated from becem-gharbi/directus-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodegen.ts
More file actions
29 lines (26 loc) · 655 Bytes
/
codegen.ts
File metadata and controls
29 lines (26 loc) · 655 Bytes
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
/*
-- Make sure GRAPHQL_INTROSPECTION=true
-- Create a static token for the authenticated role
-- Make sure to run <npx graphql-codegen --watch> for realtime updates
-- Make sure to add this file to .gitignore
*/
const staticToken = "OySMUHR0yf0g9jz_lIz-UXuEAA1f_J_N";
const config = {
schema: `http://127.0.0.1:8055/graphql?access_token=${staticToken}`,
documents: [
"./pages/**/*.vue",
"./components/**/*.vue",
"./composables/**/*.ts",
"./app.vue",
],
ignoreNoDocuments: true,
generates: {
"./gql/": {
preset: "client",
config: {
useTypeImports: true,
},
},
},
};
export default config;