Skip to content

Commit b986c3c

Browse files
authored
Merge branch 'dev' into single-target-overview
2 parents 98107db + f8adbf0 commit b986c3c

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- [Environment Directions](docs/environment_directions.md)
99
- [Code Contribution Guidlines](docs/linter_info.md)
1010
- [Use Chrome Debugger In VS Code](docs/use_chrome_debugger_in_vscode.md)
11+
- [Generate GraphQL Types](docs/codegen.md)
1112

1213
### References
1314

codegen.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
overwrite: true
2-
schema: 'https://18wi8h43il.execute-api.us-east-1.amazonaws.com/dev-flipted/graphql'
2+
schema:
3+
[
4+
{
5+
'https://18wi8h43il.execute-api.us-east-1.amazonaws.com/dev-flipted/graphql':
6+
{ headers: { Authorization: ${AUTH_TOKEN} } },
7+
},
8+
]
9+
310
documents:
411
- src/hooks/*.graphql
512
generates:

docs/codegen.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### Code Generation Manual
2+
3+
### Directions
4+
5+
1. Log in to the front-end app with valid credentials
6+
2. Collect the JWT Auhtorization token by navigating to local storage and copying the "jwt" value
7+
3. Run the following command
8+
9+
```
10+
AUTH_TOKEN=xxxxx npm run generate
11+
```
12+
*replace the xxxx with the token as is, no added quotations

0 commit comments

Comments
 (0)