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

Use pointers to structs inside slices #710

Merged
merged 1 commit into from
May 15, 2019
Merged

Use pointers to structs inside slices #710

merged 1 commit into from
May 15, 2019

Conversation

vektah
Copy link
Collaborator

@vektah vektah commented May 15, 2019

Changes the default from []Thing to []*Thing. When mapping onto existing structs the type is taken from there, as always.

Requires dataloaden changes to support []*Thing, see vektah/dataloaden#28

Continues on from #375

I have:

  • Added tests covering the bug / feature (see testing)
  • Updated any relevant documentation (see docs)

@vektah vektah merged commit f3c8406 into master May 15, 2019
@vektah vektah deleted the slice-pointers branch May 15, 2019 05:35
cgxxv pushed a commit to cgxxv/gqlgen that referenced this pull request Mar 25, 2022
Use pointers to structs inside slices
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

Successfully merging this pull request may close these issues.

1 participant