Skip to content

Commit

Permalink
Referenced types file
Browse files Browse the repository at this point in the history
  • Loading branch information
incetarik committed Aug 3, 2022
1 parent 035e604 commit b3ad543
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/dynamic-resolvers.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
import { GraphQLResolveInfo } from 'graphql'

import { Inject, Type } from '@nestjs/common'
import { Context, GraphQLExecutionContext, Info, Parent, ResolveField, Resolver, Root } from '@nestjs/graphql'
import {
Context,
GraphQLExecutionContext,
Info,
Parent,
ResolveField,
Resolver,
Root,
} from '@nestjs/graphql'

import { SYM_PRISMA_CLIENT } from './constants'
import { getNavigationMapsOf, INavigationMap, removeNavigationMapsOf } from './dynamic-navigations'
import { extractGraphQLSelectionPath, extractGraphQLSelections, toCamelCase } from './helpers'
import {
getNavigationMapsOf,
INavigationMap,
removeNavigationMapsOf,
} from './dynamic-navigations'
import {
extractGraphQLSelectionPath,
extractGraphQLSelections,
toCamelCase,
} from './helpers'

let _resolverParams: IRegisterDynamicResolverParams[] | undefined

Expand Down Expand Up @@ -107,7 +123,7 @@ export interface IUseDynamicResolversParams {
* Indicates if the generated navigation map should be kept as metadata of the
* target type.
*
* Set this property to `false` to keep the navigation map and use
* Set this property to `true` to keep the navigation map and use
* {@link getNavigationMapsOf} function to get the navigation map of the type.
*
* @type {boolean}
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '../types'

export * from './dynamic-navigations'
export {
extractGraphQLSelectionPath,
Expand Down

0 comments on commit b3ad543

Please sign in to comment.