Skip to content

Using typescript-resolvers mappers config with prisma models #4101

Discussion options

You must be logged in to vote

typescript package creates definitions according to your GraphQL Schema. Models defined in mappers are used in typescript-resolvers.

Here you already have task in resolvers as I see below.

/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = ResolversObject<{
  String: ResolverTypeWrapper<Scalars['String']>,
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>,
  Mutation: ResolverTypeWrapper<{}>,
  Query: ResolverTypeWrapper<{}>,
  Task: ResolverTypeWrapper<task>,
  ID: ResolverTypeWrapper<Scalars['ID']>,
  TaskPriority: ResolverTypeWrapper<TaskPriority>,
  TaskStatus: ResolverTypeWrapper<TaskStatus>,
}>;

/** Mapping between all available …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@miller-productions
Comment options

@dotansimha
Comment options

@miller-productions
Comment options

Answer selected by miller-productions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants