-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[new feature]/generate model tag #21
Comments
What's the use case? All of this data and more is already in the schema object, you can fetch it off the generated executable schema Perhaps mappings need to go from the go struct back to the schema object? |
one possible use case is that the generated model may be used directly with mgo or other database lib, without redefine or edit the struct again. |
@pandada8 dont direct use graphql layer object for database layer . its really not a good idea. trust me. |
I'm going to close this out until there is a good concrete use case. I don't think gqlgen should be generating your database models, it should be binding to them. |
sorry for necro, but how should this be handled, without running into
|
if i has this graphql define
its will be generated a golang struct
i want generated to
and attach more info to field tag.
we can return
desc
tag of field when request __schema.The text was updated successfully, but these errors were encountered: