Skip to content

Add TranslateDirectiveTypes automatically (via TypeInterceptor) #6

@gmiserez

Description

@gmiserez

Currently, we have to explicitely declare all the translated types during the schema building. The Package should be able to register these types automatically, for example via a type interceptor.

           services
               .AddRouting()
               .AddGraphQLServer()
                   .AddTranslation(c => c
                       .AddTranslatableType<HairColor>() // we should not have to do this, a TypeInterceptor could possibly do this automatically
                   )

Metadata

Metadata

Assignees

No one assigned

    Labels

    TranslationsThis concerns the Translations PackageenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions