MichalLytek / MichalLytek/typegraphql-prisma

adding count resolver for findmany

Open
#389 1 comment 3 reactions 0 assignees View on GitHub
community enhancement
Dominant language
TypeScript
Stars
918
Forks
130
PR merge metrics
No merged PRs in 30d

Description

Hi,
it would be amazing if there would be a count resolver to a findMany resolver.
I know it could be a problem because you would have to make another query to the DB to get the count so even a dedicated resolver for the count that will look like this CountXResolver.ts would make the job.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the generated findMany resolver and the proposed CountXResolver.ts pattern. Clarify whether the count should be a separate resolver or part of findMany, how it should query the database, and what generated GraphQL API is expected; done means the generator emits the agreed count capability.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.