You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**src/auth/**| Authentication checkers and services |
217
220
|**src/core/**| The core features like logger and env variables |
@@ -392,7 +395,56 @@ yarn start db.seed
392
395
393
396

394
397
395
-
## ❯ Run in Docker container
398
+
## ❯ GraphQL
399
+
400
+
For the GraphQL part we used the library [TypeGraphQL](https://19majkel94.github.io/type-graphql/) to build awesome GraphQL API's.
401
+
402
+
The context(shown below) of the GraphQL is builded in the **graphqlLoader.ts** file. Inside of this loader we create a scoped container for each incoming request.
403
+
404
+
```typescript
405
+
exportinterfaceContext {
406
+
requestId: number;
407
+
request: express.Request;
408
+
response: express.Response;
409
+
container: ContainerInstance;
410
+
}
411
+
```
412
+
413
+
### DataLoader
414
+
415
+
For the usage of the DataLoaders we created a annotation, which automatically creates and registers a new DataLoader to the scoped container.
0 commit comments