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

Allow overriding of UserType class #472

Open
ali-hnaineh opened this issue Mar 12, 2024 · 2 comments
Open

Allow overriding of UserType class #472

ali-hnaineh opened this issue Mar 12, 2024 · 2 comments

Comments

@ali-hnaineh
Copy link

ali-hnaineh commented Mar 12, 2024

I have a case where i need to get more data on the login,
I tried UPDATE_MUTATION_FIELDS, to inject fields, but it seems only working with actual model fieds and not properties, i want to add a resolver,

why not to add another setting to point at an another "UserType" class, defined by us, twhile skipping the hassle of overriding all the other auth schema
or update such that UPDATE_MUTATION_FIELDS works with non model fields

@nrbnlulu
Copy link
Owner

Hey, that's a good Idea I actually thought about this but this might be hard to implement due to django's app imports.

I currently don't have time to work on this though this is certainly something I want to implement.

@ali-hnaineh
Copy link
Author

smth like
GqlAuthSettings(
....
USER_TYPE: "appname.filename.classname"
)
as a string then import it sometime after
i've seen this done in other packages (not saying that these were used in a similar context)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants