Skip to content

Commit b3ad543

Browse files
committed
Referenced types file
1 parent 035e604 commit b3ad543

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

src/dynamic-resolvers.ts

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
import { GraphQLResolveInfo } from 'graphql'
22

33
import { Inject, Type } from '@nestjs/common'
4-
import { Context, GraphQLExecutionContext, Info, Parent, ResolveField, Resolver, Root } from '@nestjs/graphql'
4+
import {
5+
Context,
6+
GraphQLExecutionContext,
7+
Info,
8+
Parent,
9+
ResolveField,
10+
Resolver,
11+
Root,
12+
} from '@nestjs/graphql'
513

614
import { SYM_PRISMA_CLIENT } from './constants'
7-
import { getNavigationMapsOf, INavigationMap, removeNavigationMapsOf } from './dynamic-navigations'
8-
import { extractGraphQLSelectionPath, extractGraphQLSelections, toCamelCase } from './helpers'
15+
import {
16+
getNavigationMapsOf,
17+
INavigationMap,
18+
removeNavigationMapsOf,
19+
} from './dynamic-navigations'
20+
import {
21+
extractGraphQLSelectionPath,
22+
extractGraphQLSelections,
23+
toCamelCase,
24+
} from './helpers'
925

1026
let _resolverParams: IRegisterDynamicResolverParams[] | undefined
1127

@@ -107,7 +123,7 @@ export interface IUseDynamicResolversParams {
107123
* Indicates if the generated navigation map should be kept as metadata of the
108124
* target type.
109125
*
110-
* Set this property to `false` to keep the navigation map and use
126+
* Set this property to `true` to keep the navigation map and use
111127
* {@link getNavigationMapsOf} function to get the navigation map of the type.
112128
*
113129
* @type {boolean}

src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import '../types'
2+
13
export * from './dynamic-navigations'
24
export {
35
extractGraphQLSelectionPath,

0 commit comments

Comments
 (0)