-
Notifications
You must be signed in to change notification settings - Fork 79
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
Problem with generating dataloader using struct as key type #33
Comments
@vektah Any thoughts? |
@acelot exported packages cannot contain the word "internal" in the path |
Go is so "simple" and "straightforward" 😆 |
Yup, just got done testing this. Can confirm that this generated correctly. Thank you for turning me onto this.
Still not sure how realistic it is, but we shall give it a shot. At least the generated code is correct |
Hi guys, i have the same issue, but in my case every thing is imported and MyStructLoaderConfig is ok, but seems that dataloaden use my struct as key for cache. Thanks |
Im trying to generate dataloader that uses struct type as a key instead of primitive type.
Im using
gqlgen
and all my models are generated automatically. My project structure:Contents of
loaderkey.go
:Command to generate dataloader:
Dataloaded succesfully generates
authorloader_gen.go
dataloader. But there is a problem:As you can see fetch func using my
LoaderKey
type, but package is not imported. How to fix this?The text was updated successfully, but these errors were encountered: