Skip to content

Support opting a resolver parameter out of codegen #208

@benediktms

Description

@benediktms

I have a use case where I would like to inject a param into a class method via a decorator. This works on a technical level, but the problem is that grats treats all parameters on a resolver function as candidates for codegen. I know I could find a solution of doing this in the context object, but I don't want that parameter to 'pollute' the context object for the duration of the request, it should be available only in the current function scope.

Is this something that possible currently somehow, or something that's likely to get support?

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