Skip to content

Resolvers best practices? #34

@timthedev07

Description

@timthedev07

Hi Ben,

I'm working on a project, where I have a single giant user resolver class with the @Resolver() decorator. And recently I'm starting to wonder if it is actually better to split them up into separate files and use a utility function to manually import each resolver from each individual file. But I guess there is a tradeoff, that is, every time I create a new resolver, I need to go back to that utility function to import it from the newly created file, and in fact, I'm going to create many other resolvers in the future.

UserResolvers.ts

I would appreciate your suggestions on what to do in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions