Khan/genqlient

Make it possible to ask for a *[]T

Open

#16 opened on 2021年4月22日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Go (141 forks)github user discovery
enhancementhelp wantedneeds use cases

Repository metrics

Stars
 (1,310 stars)
PR merge metrics
 (PR metrics pending)

説明

If you put pointer: true on a list-field, you get []*T (or [][]*T, or...) which is probably what you wanted (so you can represent an required list of optional items, for example, but not the only option. If anyone finds a reason to want *[]T, or for that matter *[][]*[]T, we can figure out a syntax for it; it's easy enough to do technically. (Although it won't be totally trivial if T is an interface.)

コントリビューターガイド