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

relations in structs #152

Open
axk2 opened this issue Aug 27, 2021 · 0 comments
Open

relations in structs #152

axk2 opened this issue Aug 27, 2021 · 0 comments

Comments

@axk2
Copy link

axk2 commented Aug 27, 2021

hi, i think relations in golang are of type:

faunadb.refFn

but since type refFn is not exported i can't use it in a struct

type Profile2 struct {
  Text        string   `fauna:"text"`
  Relation  f.refFn  `fauna:"relation"`
}

i am doing it with f.Ref()

there is another way?

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