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

Create a node struct that fields of it match the structure of our edge alias. #11

Closed
pigfall opened this issue Jul 20, 2022 · 1 comment

Comments

@pigfall
Copy link
Owner

pigfall commented Jul 20, 2022

// the origin ent node struct is
type User struct{
     FieldA string
     FieldB string
     Edges UserEdges
}
# We want use the edge alias to represend the field, so the struct we expected is
type User struct{
     FieldA string
     FieldB string
    EdgeAliasToXXX []*XXXX
    EdgeAliaxToBBB []*BBBB
}
@pigfall
Copy link
Owner Author

pigfall commented Jul 21, 2022

#12

@pigfall pigfall closed this as completed Jul 21, 2022
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

1 participant