@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.
- package/LICENSE +21 -0
- package/README.md +77 -0
- package/index.cjs.js +6279 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/lib/dto/allocate-inventory-order-item.dto.d.ts +12 -0
- package/lib/dto/allocate-inventory-order-item.dto.js +36 -0
- package/lib/dto/allocate-inventory-order.dto.d.ts +9 -0
- package/lib/dto/allocate-inventory-order.dto.js +31 -0
- package/lib/dto/batch.dto.d.ts +8 -0
- package/lib/dto/batch.dto.js +26 -0
- package/lib/dto/hold-inventory-order-item.dto.d.ts +15 -0
- package/lib/dto/hold-inventory-order-item.dto.js +37 -0
- package/lib/dto/hold-inventory-order.dto.d.ts +13 -0
- package/lib/dto/hold-inventory-order.dto.js +47 -0
- package/lib/dto/index.d.ts +24 -0
- package/lib/dto/loader-type.dto.d.ts +12 -0
- package/lib/dto/loader-type.dto.js +46 -0
- package/lib/dto/loader-unit.dto.d.ts +7 -0
- package/lib/dto/loader-unit.dto.js +21 -0
- package/lib/dto/loader.dto.d.ts +17 -0
- package/lib/dto/loader.dto.js +71 -0
- package/lib/dto/location.dto.d.ts +10 -0
- package/lib/dto/location.dto.js +36 -0
- package/lib/dto/material-unit.dto.d.ts +12 -0
- package/lib/dto/material-unit.dto.js +46 -0
- package/lib/dto/material.dto.d.ts +10 -0
- package/lib/dto/material.dto.js +36 -0
- package/lib/dto/merge-batch-order.dto.d.ts +11 -0
- package/lib/dto/merge-batch-order.dto.js +50 -0
- package/lib/dto/pagination.dto.d.ts +9 -0
- package/lib/dto/pagination.dto.js +51 -0
- package/lib/dto/quality-inspection-order-item.dto.d.ts +10 -0
- package/lib/dto/quality-inspection-order-item.dto.js +50 -0
- package/lib/dto/quality-inspection-order.dto.d.ts +12 -0
- package/lib/dto/quality-inspection-order.dto.js +42 -0
- package/lib/dto/receive-inventory-order-item.dto.d.ts +18 -0
- package/lib/dto/receive-inventory-order-item.dto.js +60 -0
- package/lib/dto/receive-inventory-order.dto.d.ts +16 -0
- package/lib/dto/receive-inventory-order.dto.js +58 -0
- package/lib/dto/reclassify-inventory-order.dto.d.ts +12 -0
- package/lib/dto/reclassify-inventory-order.dto.js +55 -0
- package/lib/dto/sale-order.dto.d.ts +4 -0
- package/lib/dto/sale-order.dto.js +20 -0
- package/lib/dto/scrape-order-item.dto.d.ts +14 -0
- package/lib/dto/scrape-order-item.dto.js +56 -0
- package/lib/dto/scrape-order.dto.d.ts +11 -0
- package/lib/dto/scrape-order.dto.js +37 -0
- package/lib/dto/ship-inventory-order-item.dto.d.ts +14 -0
- package/lib/dto/ship-inventory-order-item.dto.js +56 -0
- package/lib/dto/ship-inventory-order-reference.dto.d.ts +12 -0
- package/lib/dto/ship-inventory-order-reference.dto.js +48 -0
- package/lib/dto/ship-inventory-order.dto.d.ts +16 -0
- package/lib/dto/ship-inventory-order.dto.js +58 -0
- package/lib/dto/split-batch-order.dto.d.ts +11 -0
- package/lib/dto/split-batch-order.dto.js +50 -0
- package/lib/dto/stock.dto.d.ts +42 -0
- package/lib/dto/stock.dto.js +138 -0
- package/lib/dto/transfer-customer-order-item.dto.d.ts +15 -0
- package/lib/dto/transfer-customer-order-item.dto.js +61 -0
- package/lib/dto/transfer-customer-order.dto.d.ts +11 -0
- package/lib/dto/transfer-customer-order.dto.js +37 -0
- package/lib/dto/transfer-order-item.dto.d.ts +15 -0
- package/lib/dto/transfer-order-item.dto.js +41 -0
- package/lib/dto/transfer-order.dto.d.ts +15 -0
- package/lib/dto/transfer-order.dto.js +57 -0
- package/lib/dto/transfer-vendor-order-item.dto.d.ts +15 -0
- package/lib/dto/transfer-vendor-order-item.dto.js +61 -0
- package/lib/dto/transfer-vendor-order.dto.d.ts +11 -0
- package/lib/dto/transfer-vendor-order.dto.js +37 -0
- package/lib/dto/unit.dto.d.ts +4 -0
- package/lib/dto/unit.dto.js +20 -0
- package/lib/dto/warehouse-map.dto.d.ts +39 -0
- package/lib/dto/warehouse-map.dto.js +165 -0
- package/lib/graphql.module.d.ts +6 -0
- package/lib/graphql.module.js +157 -0
- package/lib/helpers/dataloader.type.d.ts +12 -0
- package/lib/helpers/helper.module.d.ts +2 -0
- package/lib/helpers/helper.module.js +15 -0
- package/lib/helpers/index.d.ts +4 -0
- package/lib/helpers/loader.service.d.ts +56 -0
- package/lib/helpers/loader.service.js +168 -0
- package/lib/helpers/query-path.d.ts +1 -0
- package/lib/helpers/query-path.js +19 -0
- package/lib/inputs/cancel-ship-order.args.d.ts +4 -0
- package/lib/inputs/cancel-ship-order.args.js +20 -0
- package/lib/inputs/cancel-transfer-order.args.d.ts +4 -0
- package/lib/inputs/cancel-transfer-order.args.js +23 -0
- package/lib/inputs/create-allocate-inventory-order-item.args.d.ts +13 -0
- package/lib/inputs/create-allocate-inventory-order-item.args.js +50 -0
- package/lib/inputs/create-allocate-inventory-order.args.d.ts +11 -0
- package/lib/inputs/create-allocate-inventory-order.args.js +36 -0
- package/lib/inputs/create-hold-inventory-order-item.args.d.ts +11 -0
- package/lib/inputs/create-hold-inventory-order-item.args.js +40 -0
- package/lib/inputs/create-hold-inventory-order.args.d.ts +12 -0
- package/lib/inputs/create-hold-inventory-order.args.js +41 -0
- package/lib/inputs/create-loader-type.args.d.ts +10 -0
- package/lib/inputs/create-loader-type.args.js +35 -0
- package/lib/inputs/create-loader.args.d.ts +30 -0
- package/lib/inputs/create-loader.args.js +130 -0
- package/lib/inputs/create-location.args.d.ts +11 -0
- package/lib/inputs/create-location.args.js +50 -0
- package/lib/inputs/create-material-unit.args.d.ts +5 -0
- package/lib/inputs/create-material-unit.args.js +25 -0
- package/lib/inputs/create-material.args.d.ts +14 -0
- package/lib/inputs/create-material.args.js +51 -0
- package/lib/inputs/create-quality-inspection-order.args.d.ts +11 -0
- package/lib/inputs/create-quality-inspection-order.args.js +50 -0
- package/lib/inputs/create-receive-inventory-order-item.args.d.ts +17 -0
- package/lib/inputs/create-receive-inventory-order-item.args.js +70 -0
- package/lib/inputs/create-receive-inventory-order.args.d.ts +14 -0
- package/lib/inputs/create-receive-inventory-order.args.js +51 -0
- package/lib/inputs/create-ship-inventory-order-item.args.d.ts +12 -0
- package/lib/inputs/create-ship-inventory-order-item.args.js +45 -0
- package/lib/inputs/create-ship-inventory-order-reference.args.d.ts +16 -0
- package/lib/inputs/create-ship-inventory-order-reference.args.js +65 -0
- package/lib/inputs/create-ship-inventory-order.args.d.ts +16 -0
- package/lib/inputs/create-ship-inventory-order.args.js +57 -0
- package/lib/inputs/create-transfer-customer-order-item.args.d.ts +11 -0
- package/lib/inputs/create-transfer-customer-order-item.args.js +40 -0
- package/lib/inputs/create-transfer-customer-order.args.d.ts +14 -0
- package/lib/inputs/create-transfer-customer-order.args.js +51 -0
- package/lib/inputs/create-transfer-order-item.args.d.ts +11 -0
- package/lib/inputs/create-transfer-order-item.args.js +40 -0
- package/lib/inputs/create-transfer-order.args.d.ts +16 -0
- package/lib/inputs/create-transfer-order.args.js +61 -0
- package/lib/inputs/create-transfer-vendor-order-item.args.d.ts +11 -0
- package/lib/inputs/create-transfer-vendor-order-item.args.js +40 -0
- package/lib/inputs/create-transfer-vendor-order.args.d.ts +14 -0
- package/lib/inputs/create-transfer-vendor-order.args.js +51 -0
- package/lib/inputs/date-range.args.d.ts +4 -0
- package/lib/inputs/date-range.args.js +20 -0
- package/lib/inputs/deallocate-order.args.d.ts +5 -0
- package/lib/inputs/deallocate-order.args.js +25 -0
- package/lib/inputs/find-allocate-inventory-order.args.d.ts +10 -0
- package/lib/inputs/find-allocate-inventory-order.args.js +42 -0
- package/lib/inputs/find-batch.args.d.ts +5 -0
- package/lib/inputs/find-batch.args.js +21 -0
- package/lib/inputs/find-hold-inventory-order.args.d.ts +10 -0
- package/lib/inputs/find-hold-inventory-order.args.js +42 -0
- package/lib/inputs/find-loader-type.args.d.ts +8 -0
- package/lib/inputs/find-loader-type.args.js +32 -0
- package/lib/inputs/find-loader.args.d.ts +16 -0
- package/lib/inputs/find-loader.args.js +72 -0
- package/lib/inputs/find-location.args.d.ts +6 -0
- package/lib/inputs/find-location.args.js +26 -0
- package/lib/inputs/find-material.args.d.ts +5 -0
- package/lib/inputs/find-material.args.js +21 -0
- package/lib/inputs/find-receive-inventory-order.args.d.ts +16 -0
- package/lib/inputs/find-receive-inventory-order.args.js +71 -0
- package/lib/inputs/find-sale-order.args.d.ts +4 -0
- package/lib/inputs/find-sale-order.args.js +16 -0
- package/lib/inputs/find-ship-inventory-order.args.d.ts +16 -0
- package/lib/inputs/find-ship-inventory-order.args.js +71 -0
- package/lib/inputs/find-stock.args.d.ts +15 -0
- package/lib/inputs/find-stock.args.js +67 -0
- package/lib/inputs/find-transfer-order.args.d.ts +18 -0
- package/lib/inputs/find-transfer-order.args.js +82 -0
- package/lib/inputs/index.d.ts +0 -0
- package/lib/inputs/merge-batch.args.d.ts +9 -0
- package/lib/inputs/merge-batch.args.js +40 -0
- package/lib/inputs/pagination.args.d.ts +4 -0
- package/lib/inputs/pagination.args.js +20 -0
- package/lib/inputs/receive-order.args.d.ts +8 -0
- package/lib/inputs/receive-order.args.js +40 -0
- package/lib/inputs/reclassify-inventory-order.args.d.ts +9 -0
- package/lib/inputs/reclassify-inventory-order.args.js +40 -0
- package/lib/inputs/release-order.args.d.ts +5 -0
- package/lib/inputs/release-order.args.js +25 -0
- package/lib/inputs/return-transfer-customer-order.args.d.ts +7 -0
- package/lib/inputs/return-transfer-customer-order.args.js +35 -0
- package/lib/inputs/return-transfer-vendor-order.args.d.ts +7 -0
- package/lib/inputs/return-transfer-vendor-order.args.js +35 -0
- package/lib/inputs/scrape-order.args.d.ts +8 -0
- package/lib/inputs/scrape-order.args.js +35 -0
- package/lib/inputs/ship-order.args.d.ts +4 -0
- package/lib/inputs/ship-order.args.js +20 -0
- package/lib/inputs/split-batch.args.d.ts +9 -0
- package/lib/inputs/split-batch.args.js +40 -0
- package/lib/inputs/transfer-order.args.d.ts +4 -0
- package/lib/inputs/transfer-order.args.js +20 -0
- package/lib/inputs/update-warehouse-map.args.d.ts +28 -0
- package/lib/inputs/update-warehouse-map.args.js +121 -0
- package/lib/mutations/allocate-inventory-order.mutation.d.ts +12 -0
- package/lib/mutations/allocate-inventory-order.mutation.js +81 -0
- package/lib/mutations/hold-inventory-order.mutation.d.ts +12 -0
- package/lib/mutations/hold-inventory-order.mutation.js +81 -0
- package/lib/mutations/loader.mutation.d.ts +13 -0
- package/lib/mutations/loader.mutation.js +105 -0
- package/lib/mutations/location.mutation.d.ts +8 -0
- package/lib/mutations/location.mutation.js +39 -0
- package/lib/mutations/material.mutation.d.ts +9 -0
- package/lib/mutations/material.mutation.js +62 -0
- package/lib/mutations/merge-batch.mutation.d.ts +9 -0
- package/lib/mutations/merge-batch.mutation.js +44 -0
- package/lib/mutations/quality-inspection-order.mutation.d.ts +9 -0
- package/lib/mutations/quality-inspection-order.mutation.js +44 -0
- package/lib/mutations/receive-inventory-order.mutation.d.ts +13 -0
- package/lib/mutations/receive-inventory-order.mutation.js +92 -0
- package/lib/mutations/reclassify-inventory-order.mutation.d.ts +9 -0
- package/lib/mutations/reclassify-inventory-order.mutation.js +45 -0
- package/lib/mutations/scrape-order.mutation.d.ts +9 -0
- package/lib/mutations/scrape-order.mutation.js +38 -0
- package/lib/mutations/ship-inventory-order.mutation.d.ts +14 -0
- package/lib/mutations/ship-inventory-order.mutation.js +107 -0
- package/lib/mutations/split-batch.mutation.d.ts +9 -0
- package/lib/mutations/split-batch.mutation.js +38 -0
- package/lib/mutations/transfer-customer-order.mutation.d.ts +12 -0
- package/lib/mutations/transfer-customer-order.mutation.js +81 -0
- package/lib/mutations/transfer-order.mutation.d.ts +14 -0
- package/lib/mutations/transfer-order.mutation.js +84 -0
- package/lib/mutations/transfer-vendor-order.mutation.d.ts +12 -0
- package/lib/mutations/transfer-vendor-order.mutation.js +81 -0
- package/lib/mutations/warehouse-map.mutation.d.ts +10 -0
- package/lib/mutations/warehouse-map.mutation.js +54 -0
- package/lib/queries/allocate-inventory-order.query.d.ts +8 -0
- package/lib/queries/allocate-inventory-order.query.js +30 -0
- package/lib/queries/batch.query.d.ts +8 -0
- package/lib/queries/batch.query.js +33 -0
- package/lib/queries/hold-inventory-order.query.d.ts +8 -0
- package/lib/queries/hold-inventory-order.query.js +30 -0
- package/lib/queries/loader.query.d.ts +17 -0
- package/lib/queries/loader.query.js +157 -0
- package/lib/queries/location.query.d.ts +9 -0
- package/lib/queries/location.query.js +47 -0
- package/lib/queries/material.query.d.ts +9 -0
- package/lib/queries/material.query.js +71 -0
- package/lib/queries/recieve-inventory-order.query.d.ts +9 -0
- package/lib/queries/recieve-inventory-order.query.js +69 -0
- package/lib/queries/sale-order.query.d.ts +8 -0
- package/lib/queries/sale-order.query.js +53 -0
- package/lib/queries/ship-inventory-order.query.d.ts +9 -0
- package/lib/queries/ship-inventory-order.query.js +69 -0
- package/lib/queries/stock.query.d.ts +12 -0
- package/lib/queries/stock.query.js +109 -0
- package/lib/queries/transfer-order.query.d.ts +9 -0
- package/lib/queries/transfer-order.query.js +42 -0
- package/lib/queries/unit.query.d.ts +7 -0
- package/lib/queries/unit.query.js +27 -0
- package/lib/queries/warehouse-map.query.d.ts +7 -0
- package/lib/queries/warehouse-map.query.js +29 -0
- package/lib/resolvers/aggregated-stock.resolver.d.ts +14 -0
- package/lib/resolvers/aggregated-stock.resolver.js +112 -0
- package/lib/resolvers/allocate-inventory-order.resolver.d.ts +6 -0
- package/lib/resolvers/allocate-inventory-order.resolver.js +27 -0
- package/lib/resolvers/change-log.resolver.d.ts +10 -0
- package/lib/resolvers/change-log.resolver.js +83 -0
- package/lib/resolvers/hold-inventory-order.resolver.d.ts +7 -0
- package/lib/resolvers/hold-inventory-order.resolver.js +27 -0
- package/lib/resolvers/loader-type.resolver.d.ts +5 -0
- package/lib/resolvers/loader-type.resolver.js +50 -0
- package/lib/resolvers/loader.resolver.d.ts +9 -0
- package/lib/resolvers/loader.resolver.js +86 -0
- package/lib/resolvers/location.resolver.d.ts +10 -0
- package/lib/resolvers/location.resolver.js +55 -0
- package/lib/resolvers/material.resolver.d.ts +11 -0
- package/lib/resolvers/material.resolver.js +84 -0
- package/lib/resolvers/merge-batch.resolver.d.ts +6 -0
- package/lib/resolvers/merge-batch.resolver.js +26 -0
- package/lib/resolvers/receive-inventory-order.resolver.d.ts +15 -0
- package/lib/resolvers/receive-inventory-order.resolver.js +140 -0
- package/lib/resolvers/ship-inventory-order.resolver.d.ts +25 -0
- package/lib/resolvers/ship-inventory-order.resolver.js +273 -0
- package/lib/resolvers/split-batch.resolver.d.ts +6 -0
- package/lib/resolvers/split-batch.resolver.js +26 -0
- package/lib/resolvers/stock.resolver.d.ts +10 -0
- package/lib/resolvers/stock.resolver.js +83 -0
- package/lib/resolvers/transfer-customer-order.resolver.d.ts +6 -0
- package/lib/resolvers/transfer-customer-order.resolver.js +27 -0
- package/lib/resolvers/transfer-order.resolver.d.ts +21 -0
- package/lib/resolvers/transfer-order.resolver.js +218 -0
- package/lib/resolvers/transfer-vendor-order.resolver.d.ts +6 -0
- package/lib/resolvers/transfer-vendor-order.resolver.js +27 -0
- package/lib/resolvers/warehouse-map.resolver.d.ts +6 -0
- package/lib/resolvers/warehouse-map.resolver.js +29 -0
- 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
|