@rytass/wms-module-graphql 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +77 -0
  3. package/index.cjs.js +6279 -0
  4. package/index.d.ts +1 -0
  5. package/index.js +1 -0
  6. package/lib/dto/allocate-inventory-order-item.dto.d.ts +12 -0
  7. package/lib/dto/allocate-inventory-order-item.dto.js +36 -0
  8. package/lib/dto/allocate-inventory-order.dto.d.ts +9 -0
  9. package/lib/dto/allocate-inventory-order.dto.js +31 -0
  10. package/lib/dto/batch.dto.d.ts +8 -0
  11. package/lib/dto/batch.dto.js +26 -0
  12. package/lib/dto/hold-inventory-order-item.dto.d.ts +15 -0
  13. package/lib/dto/hold-inventory-order-item.dto.js +37 -0
  14. package/lib/dto/hold-inventory-order.dto.d.ts +13 -0
  15. package/lib/dto/hold-inventory-order.dto.js +47 -0
  16. package/lib/dto/index.d.ts +24 -0
  17. package/lib/dto/loader-type.dto.d.ts +12 -0
  18. package/lib/dto/loader-type.dto.js +46 -0
  19. package/lib/dto/loader-unit.dto.d.ts +7 -0
  20. package/lib/dto/loader-unit.dto.js +21 -0
  21. package/lib/dto/loader.dto.d.ts +17 -0
  22. package/lib/dto/loader.dto.js +71 -0
  23. package/lib/dto/location.dto.d.ts +10 -0
  24. package/lib/dto/location.dto.js +36 -0
  25. package/lib/dto/material-unit.dto.d.ts +12 -0
  26. package/lib/dto/material-unit.dto.js +46 -0
  27. package/lib/dto/material.dto.d.ts +10 -0
  28. package/lib/dto/material.dto.js +36 -0
  29. package/lib/dto/merge-batch-order.dto.d.ts +11 -0
  30. package/lib/dto/merge-batch-order.dto.js +50 -0
  31. package/lib/dto/pagination.dto.d.ts +9 -0
  32. package/lib/dto/pagination.dto.js +51 -0
  33. package/lib/dto/quality-inspection-order-item.dto.d.ts +10 -0
  34. package/lib/dto/quality-inspection-order-item.dto.js +50 -0
  35. package/lib/dto/quality-inspection-order.dto.d.ts +12 -0
  36. package/lib/dto/quality-inspection-order.dto.js +42 -0
  37. package/lib/dto/receive-inventory-order-item.dto.d.ts +18 -0
  38. package/lib/dto/receive-inventory-order-item.dto.js +60 -0
  39. package/lib/dto/receive-inventory-order.dto.d.ts +16 -0
  40. package/lib/dto/receive-inventory-order.dto.js +58 -0
  41. package/lib/dto/reclassify-inventory-order.dto.d.ts +12 -0
  42. package/lib/dto/reclassify-inventory-order.dto.js +55 -0
  43. package/lib/dto/sale-order.dto.d.ts +4 -0
  44. package/lib/dto/sale-order.dto.js +20 -0
  45. package/lib/dto/scrape-order-item.dto.d.ts +14 -0
  46. package/lib/dto/scrape-order-item.dto.js +56 -0
  47. package/lib/dto/scrape-order.dto.d.ts +11 -0
  48. package/lib/dto/scrape-order.dto.js +37 -0
  49. package/lib/dto/ship-inventory-order-item.dto.d.ts +14 -0
  50. package/lib/dto/ship-inventory-order-item.dto.js +56 -0
  51. package/lib/dto/ship-inventory-order-reference.dto.d.ts +12 -0
  52. package/lib/dto/ship-inventory-order-reference.dto.js +48 -0
  53. package/lib/dto/ship-inventory-order.dto.d.ts +16 -0
  54. package/lib/dto/ship-inventory-order.dto.js +58 -0
  55. package/lib/dto/split-batch-order.dto.d.ts +11 -0
  56. package/lib/dto/split-batch-order.dto.js +50 -0
  57. package/lib/dto/stock.dto.d.ts +42 -0
  58. package/lib/dto/stock.dto.js +138 -0
  59. package/lib/dto/transfer-customer-order-item.dto.d.ts +15 -0
  60. package/lib/dto/transfer-customer-order-item.dto.js +61 -0
  61. package/lib/dto/transfer-customer-order.dto.d.ts +11 -0
  62. package/lib/dto/transfer-customer-order.dto.js +37 -0
  63. package/lib/dto/transfer-order-item.dto.d.ts +15 -0
  64. package/lib/dto/transfer-order-item.dto.js +41 -0
  65. package/lib/dto/transfer-order.dto.d.ts +15 -0
  66. package/lib/dto/transfer-order.dto.js +57 -0
  67. package/lib/dto/transfer-vendor-order-item.dto.d.ts +15 -0
  68. package/lib/dto/transfer-vendor-order-item.dto.js +61 -0
  69. package/lib/dto/transfer-vendor-order.dto.d.ts +11 -0
  70. package/lib/dto/transfer-vendor-order.dto.js +37 -0
  71. package/lib/dto/unit.dto.d.ts +4 -0
  72. package/lib/dto/unit.dto.js +20 -0
  73. package/lib/dto/warehouse-map.dto.d.ts +39 -0
  74. package/lib/dto/warehouse-map.dto.js +165 -0
  75. package/lib/graphql.module.d.ts +6 -0
  76. package/lib/graphql.module.js +157 -0
  77. package/lib/helpers/dataloader.type.d.ts +12 -0
  78. package/lib/helpers/helper.module.d.ts +2 -0
  79. package/lib/helpers/helper.module.js +15 -0
  80. package/lib/helpers/index.d.ts +4 -0
  81. package/lib/helpers/loader.service.d.ts +56 -0
  82. package/lib/helpers/loader.service.js +168 -0
  83. package/lib/helpers/query-path.d.ts +1 -0
  84. package/lib/helpers/query-path.js +19 -0
  85. package/lib/inputs/cancel-ship-order.args.d.ts +4 -0
  86. package/lib/inputs/cancel-ship-order.args.js +20 -0
  87. package/lib/inputs/cancel-transfer-order.args.d.ts +4 -0
  88. package/lib/inputs/cancel-transfer-order.args.js +23 -0
  89. package/lib/inputs/create-allocate-inventory-order-item.args.d.ts +13 -0
  90. package/lib/inputs/create-allocate-inventory-order-item.args.js +50 -0
  91. package/lib/inputs/create-allocate-inventory-order.args.d.ts +11 -0
  92. package/lib/inputs/create-allocate-inventory-order.args.js +36 -0
  93. package/lib/inputs/create-hold-inventory-order-item.args.d.ts +11 -0
  94. package/lib/inputs/create-hold-inventory-order-item.args.js +40 -0
  95. package/lib/inputs/create-hold-inventory-order.args.d.ts +12 -0
  96. package/lib/inputs/create-hold-inventory-order.args.js +41 -0
  97. package/lib/inputs/create-loader-type.args.d.ts +10 -0
  98. package/lib/inputs/create-loader-type.args.js +35 -0
  99. package/lib/inputs/create-loader.args.d.ts +30 -0
  100. package/lib/inputs/create-loader.args.js +130 -0
  101. package/lib/inputs/create-location.args.d.ts +11 -0
  102. package/lib/inputs/create-location.args.js +50 -0
  103. package/lib/inputs/create-material-unit.args.d.ts +5 -0
  104. package/lib/inputs/create-material-unit.args.js +25 -0
  105. package/lib/inputs/create-material.args.d.ts +14 -0
  106. package/lib/inputs/create-material.args.js +51 -0
  107. package/lib/inputs/create-quality-inspection-order.args.d.ts +11 -0
  108. package/lib/inputs/create-quality-inspection-order.args.js +50 -0
  109. package/lib/inputs/create-receive-inventory-order-item.args.d.ts +17 -0
  110. package/lib/inputs/create-receive-inventory-order-item.args.js +70 -0
  111. package/lib/inputs/create-receive-inventory-order.args.d.ts +14 -0
  112. package/lib/inputs/create-receive-inventory-order.args.js +51 -0
  113. package/lib/inputs/create-ship-inventory-order-item.args.d.ts +12 -0
  114. package/lib/inputs/create-ship-inventory-order-item.args.js +45 -0
  115. package/lib/inputs/create-ship-inventory-order-reference.args.d.ts +16 -0
  116. package/lib/inputs/create-ship-inventory-order-reference.args.js +65 -0
  117. package/lib/inputs/create-ship-inventory-order.args.d.ts +16 -0
  118. package/lib/inputs/create-ship-inventory-order.args.js +57 -0
  119. package/lib/inputs/create-transfer-customer-order-item.args.d.ts +11 -0
  120. package/lib/inputs/create-transfer-customer-order-item.args.js +40 -0
  121. package/lib/inputs/create-transfer-customer-order.args.d.ts +14 -0
  122. package/lib/inputs/create-transfer-customer-order.args.js +51 -0
  123. package/lib/inputs/create-transfer-order-item.args.d.ts +11 -0
  124. package/lib/inputs/create-transfer-order-item.args.js +40 -0
  125. package/lib/inputs/create-transfer-order.args.d.ts +16 -0
  126. package/lib/inputs/create-transfer-order.args.js +61 -0
  127. package/lib/inputs/create-transfer-vendor-order-item.args.d.ts +11 -0
  128. package/lib/inputs/create-transfer-vendor-order-item.args.js +40 -0
  129. package/lib/inputs/create-transfer-vendor-order.args.d.ts +14 -0
  130. package/lib/inputs/create-transfer-vendor-order.args.js +51 -0
  131. package/lib/inputs/date-range.args.d.ts +4 -0
  132. package/lib/inputs/date-range.args.js +20 -0
  133. package/lib/inputs/deallocate-order.args.d.ts +5 -0
  134. package/lib/inputs/deallocate-order.args.js +25 -0
  135. package/lib/inputs/find-allocate-inventory-order.args.d.ts +10 -0
  136. package/lib/inputs/find-allocate-inventory-order.args.js +42 -0
  137. package/lib/inputs/find-batch.args.d.ts +5 -0
  138. package/lib/inputs/find-batch.args.js +21 -0
  139. package/lib/inputs/find-hold-inventory-order.args.d.ts +10 -0
  140. package/lib/inputs/find-hold-inventory-order.args.js +42 -0
  141. package/lib/inputs/find-loader-type.args.d.ts +8 -0
  142. package/lib/inputs/find-loader-type.args.js +32 -0
  143. package/lib/inputs/find-loader.args.d.ts +16 -0
  144. package/lib/inputs/find-loader.args.js +72 -0
  145. package/lib/inputs/find-location.args.d.ts +6 -0
  146. package/lib/inputs/find-location.args.js +26 -0
  147. package/lib/inputs/find-material.args.d.ts +5 -0
  148. package/lib/inputs/find-material.args.js +21 -0
  149. package/lib/inputs/find-receive-inventory-order.args.d.ts +16 -0
  150. package/lib/inputs/find-receive-inventory-order.args.js +71 -0
  151. package/lib/inputs/find-sale-order.args.d.ts +4 -0
  152. package/lib/inputs/find-sale-order.args.js +16 -0
  153. package/lib/inputs/find-ship-inventory-order.args.d.ts +16 -0
  154. package/lib/inputs/find-ship-inventory-order.args.js +71 -0
  155. package/lib/inputs/find-stock.args.d.ts +15 -0
  156. package/lib/inputs/find-stock.args.js +67 -0
  157. package/lib/inputs/find-transfer-order.args.d.ts +18 -0
  158. package/lib/inputs/find-transfer-order.args.js +82 -0
  159. package/lib/inputs/index.d.ts +0 -0
  160. package/lib/inputs/merge-batch.args.d.ts +9 -0
  161. package/lib/inputs/merge-batch.args.js +40 -0
  162. package/lib/inputs/pagination.args.d.ts +4 -0
  163. package/lib/inputs/pagination.args.js +20 -0
  164. package/lib/inputs/receive-order.args.d.ts +8 -0
  165. package/lib/inputs/receive-order.args.js +40 -0
  166. package/lib/inputs/reclassify-inventory-order.args.d.ts +9 -0
  167. package/lib/inputs/reclassify-inventory-order.args.js +40 -0
  168. package/lib/inputs/release-order.args.d.ts +5 -0
  169. package/lib/inputs/release-order.args.js +25 -0
  170. package/lib/inputs/return-transfer-customer-order.args.d.ts +7 -0
  171. package/lib/inputs/return-transfer-customer-order.args.js +35 -0
  172. package/lib/inputs/return-transfer-vendor-order.args.d.ts +7 -0
  173. package/lib/inputs/return-transfer-vendor-order.args.js +35 -0
  174. package/lib/inputs/scrape-order.args.d.ts +8 -0
  175. package/lib/inputs/scrape-order.args.js +35 -0
  176. package/lib/inputs/ship-order.args.d.ts +4 -0
  177. package/lib/inputs/ship-order.args.js +20 -0
  178. package/lib/inputs/split-batch.args.d.ts +9 -0
  179. package/lib/inputs/split-batch.args.js +40 -0
  180. package/lib/inputs/transfer-order.args.d.ts +4 -0
  181. package/lib/inputs/transfer-order.args.js +20 -0
  182. package/lib/inputs/update-warehouse-map.args.d.ts +28 -0
  183. package/lib/inputs/update-warehouse-map.args.js +121 -0
  184. package/lib/mutations/allocate-inventory-order.mutation.d.ts +12 -0
  185. package/lib/mutations/allocate-inventory-order.mutation.js +81 -0
  186. package/lib/mutations/hold-inventory-order.mutation.d.ts +12 -0
  187. package/lib/mutations/hold-inventory-order.mutation.js +81 -0
  188. package/lib/mutations/loader.mutation.d.ts +13 -0
  189. package/lib/mutations/loader.mutation.js +105 -0
  190. package/lib/mutations/location.mutation.d.ts +8 -0
  191. package/lib/mutations/location.mutation.js +39 -0
  192. package/lib/mutations/material.mutation.d.ts +9 -0
  193. package/lib/mutations/material.mutation.js +62 -0
  194. package/lib/mutations/merge-batch.mutation.d.ts +9 -0
  195. package/lib/mutations/merge-batch.mutation.js +44 -0
  196. package/lib/mutations/quality-inspection-order.mutation.d.ts +9 -0
  197. package/lib/mutations/quality-inspection-order.mutation.js +44 -0
  198. package/lib/mutations/receive-inventory-order.mutation.d.ts +13 -0
  199. package/lib/mutations/receive-inventory-order.mutation.js +92 -0
  200. package/lib/mutations/reclassify-inventory-order.mutation.d.ts +9 -0
  201. package/lib/mutations/reclassify-inventory-order.mutation.js +45 -0
  202. package/lib/mutations/scrape-order.mutation.d.ts +9 -0
  203. package/lib/mutations/scrape-order.mutation.js +38 -0
  204. package/lib/mutations/ship-inventory-order.mutation.d.ts +14 -0
  205. package/lib/mutations/ship-inventory-order.mutation.js +107 -0
  206. package/lib/mutations/split-batch.mutation.d.ts +9 -0
  207. package/lib/mutations/split-batch.mutation.js +38 -0
  208. package/lib/mutations/transfer-customer-order.mutation.d.ts +12 -0
  209. package/lib/mutations/transfer-customer-order.mutation.js +81 -0
  210. package/lib/mutations/transfer-order.mutation.d.ts +14 -0
  211. package/lib/mutations/transfer-order.mutation.js +84 -0
  212. package/lib/mutations/transfer-vendor-order.mutation.d.ts +12 -0
  213. package/lib/mutations/transfer-vendor-order.mutation.js +81 -0
  214. package/lib/mutations/warehouse-map.mutation.d.ts +10 -0
  215. package/lib/mutations/warehouse-map.mutation.js +54 -0
  216. package/lib/queries/allocate-inventory-order.query.d.ts +8 -0
  217. package/lib/queries/allocate-inventory-order.query.js +30 -0
  218. package/lib/queries/batch.query.d.ts +8 -0
  219. package/lib/queries/batch.query.js +33 -0
  220. package/lib/queries/hold-inventory-order.query.d.ts +8 -0
  221. package/lib/queries/hold-inventory-order.query.js +30 -0
  222. package/lib/queries/loader.query.d.ts +17 -0
  223. package/lib/queries/loader.query.js +157 -0
  224. package/lib/queries/location.query.d.ts +9 -0
  225. package/lib/queries/location.query.js +47 -0
  226. package/lib/queries/material.query.d.ts +9 -0
  227. package/lib/queries/material.query.js +71 -0
  228. package/lib/queries/recieve-inventory-order.query.d.ts +9 -0
  229. package/lib/queries/recieve-inventory-order.query.js +69 -0
  230. package/lib/queries/sale-order.query.d.ts +8 -0
  231. package/lib/queries/sale-order.query.js +53 -0
  232. package/lib/queries/ship-inventory-order.query.d.ts +9 -0
  233. package/lib/queries/ship-inventory-order.query.js +69 -0
  234. package/lib/queries/stock.query.d.ts +12 -0
  235. package/lib/queries/stock.query.js +109 -0
  236. package/lib/queries/transfer-order.query.d.ts +9 -0
  237. package/lib/queries/transfer-order.query.js +42 -0
  238. package/lib/queries/unit.query.d.ts +7 -0
  239. package/lib/queries/unit.query.js +27 -0
  240. package/lib/queries/warehouse-map.query.d.ts +7 -0
  241. package/lib/queries/warehouse-map.query.js +29 -0
  242. package/lib/resolvers/aggregated-stock.resolver.d.ts +14 -0
  243. package/lib/resolvers/aggregated-stock.resolver.js +112 -0
  244. package/lib/resolvers/allocate-inventory-order.resolver.d.ts +6 -0
  245. package/lib/resolvers/allocate-inventory-order.resolver.js +27 -0
  246. package/lib/resolvers/change-log.resolver.d.ts +10 -0
  247. package/lib/resolvers/change-log.resolver.js +83 -0
  248. package/lib/resolvers/hold-inventory-order.resolver.d.ts +7 -0
  249. package/lib/resolvers/hold-inventory-order.resolver.js +27 -0
  250. package/lib/resolvers/loader-type.resolver.d.ts +5 -0
  251. package/lib/resolvers/loader-type.resolver.js +50 -0
  252. package/lib/resolvers/loader.resolver.d.ts +9 -0
  253. package/lib/resolvers/loader.resolver.js +86 -0
  254. package/lib/resolvers/location.resolver.d.ts +10 -0
  255. package/lib/resolvers/location.resolver.js +55 -0
  256. package/lib/resolvers/material.resolver.d.ts +11 -0
  257. package/lib/resolvers/material.resolver.js +84 -0
  258. package/lib/resolvers/merge-batch.resolver.d.ts +6 -0
  259. package/lib/resolvers/merge-batch.resolver.js +26 -0
  260. package/lib/resolvers/receive-inventory-order.resolver.d.ts +15 -0
  261. package/lib/resolvers/receive-inventory-order.resolver.js +140 -0
  262. package/lib/resolvers/ship-inventory-order.resolver.d.ts +25 -0
  263. package/lib/resolvers/ship-inventory-order.resolver.js +273 -0
  264. package/lib/resolvers/split-batch.resolver.d.ts +6 -0
  265. package/lib/resolvers/split-batch.resolver.js +26 -0
  266. package/lib/resolvers/stock.resolver.d.ts +10 -0
  267. package/lib/resolvers/stock.resolver.js +83 -0
  268. package/lib/resolvers/transfer-customer-order.resolver.d.ts +6 -0
  269. package/lib/resolvers/transfer-customer-order.resolver.js +27 -0
  270. package/lib/resolvers/transfer-order.resolver.d.ts +21 -0
  271. package/lib/resolvers/transfer-order.resolver.js +218 -0
  272. package/lib/resolvers/transfer-vendor-order.resolver.d.ts +6 -0
  273. package/lib/resolvers/transfer-vendor-order.resolver.js +27 -0
  274. package/lib/resolvers/warehouse-map.resolver.d.ts +6 -0
  275. package/lib/resolvers/warehouse-map.resolver.js +29 -0
  276. package/package.json +54 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Rytass
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,77 @@
1
+ # @rytass/wms-module-graphql
2
+
3
+ GraphQL resolvers, mutations, queries and DTOs for the Rytass Warehouse Management System (WMS). Exposes the full WMS domain (loaders, materials, batches, stock, locations, transfers, inventory orders, quality inspection, scrape, warehouse map) as a NestJS [`GraphQLModule`](https://docs.nestjs.com/graphql/quick-start).
4
+
5
+ Pair with [`@rytass/wms-module-core`](https://www.npmjs.com/package/@rytass/wms-module-core) for the service layer and [`@rytass/wms-module-react`](https://www.npmjs.com/package/@rytass/wms-module-react) for ready-made admin UI.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ yarn add @rytass/wms-module-graphql @rytass/wms-module-core
11
+ # peer deps
12
+ yarn add @nestjs/common @nestjs/graphql @nestjs/apollo @apollo/server graphql dataloader reflect-metadata rxjs
13
+ ```
14
+
15
+ ## Quick start
16
+
17
+ ```ts
18
+ import { Module } from '@nestjs/common';
19
+ import { TypeOrmModule } from '@nestjs/typeorm';
20
+ import { ApolloDriver } from '@nestjs/apollo';
21
+ import { resolve } from 'node:path';
22
+ import { WmsModuleGraphqlModule } from '@rytass/wms-module-graphql';
23
+
24
+ @Module({
25
+ imports: [
26
+ TypeOrmModule.forRoot({ /* ...db config... */ }),
27
+ WmsModuleGraphqlModule.forRootAsync(
28
+ {
29
+ useFactory: async () => ({}),
30
+ defaultLoaderSerialId: 'DEFAULT',
31
+ defaultLoaderTypeKey: 'DEFAULT',
32
+ defaultLocationKey: 'DEFAULT',
33
+ },
34
+ {
35
+ driver: ApolloDriver,
36
+ useFactory: async () => ({
37
+ autoSchemaFile: resolve(process.cwd(), 'schema.gql'),
38
+ playground: false,
39
+ introspection: true,
40
+ cors: true,
41
+ autoTransformHttpErrors: true,
42
+ }),
43
+ },
44
+ ),
45
+ ],
46
+ })
47
+ export class AppModule {}
48
+ ```
49
+
50
+ The first argument is `WmsModuleCoreModuleAsyncOptions` (merged from `@rytass/wms-module-core` — same shape as `WMSBaseModuleAsyncOptions` plus the three `default*` keys). The second is a standard `@nestjs/graphql` `GqlModuleAsyncOptions` — extend the `useFactory` to override the Apollo config (cors, plugins, custom scalars, etc.).
51
+
52
+ `WmsModuleGraphqlModule` internally wires `WmsModuleCoreModule.forRootAsync` so you do not need to import the core module separately when using this package.
53
+
54
+ ## DataLoader context
55
+
56
+ The module ships a `HelperModule` that provides DataLoader instances for batched entity lookups, automatically injected into the GraphQL context so resolvers can avoid N+1 queries:
57
+
58
+ ```ts
59
+ context: async (contextArg) => ({
60
+ loaders: {
61
+ batchSingle: ...,
62
+ batchMany: ...,
63
+ batchManyWithPagination: ...,
64
+ },
65
+ ...contextArg,
66
+ })
67
+ ```
68
+
69
+ Custom context factories from `gqlOptions.useFactory` are merged with the loaders — your existing context fields survive the wrap.
70
+
71
+ ## Schema artefacts
72
+
73
+ The schema is generated at boot via `autoSchemaFile` (above). Commit the resulting `schema.gql` to your repo if you want downstream codegen (e.g. for `@rytass/wms-module-react`) to consume a stable schema snapshot.
74
+
75
+ ## License
76
+
77
+ MIT