Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TranslateDirectiveTypes automatically (via TypeInterceptor) #6

Open
gmiserez opened this issue Oct 21, 2022 · 0 comments
Open

Add TranslateDirectiveTypes automatically (via TypeInterceptor) #6

gmiserez opened this issue Oct 21, 2022 · 0 comments
Labels
enhancement New feature or request Translations This concerns the Translations Package

Comments

@gmiserez
Copy link
Collaborator

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
                   )
@gmiserez gmiserez added enhancement New feature or request Translations This concerns the Translations Package labels Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Translations This concerns the Translations Package
Projects
None yet
Development

No branches or pull requests

1 participant