Khan/genqlient

Make it possible to ask for a *[]T

Open

#16 aperta il 22 apr 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Go (141 fork)github user discovery
enhancementhelp wantedneeds use cases

Metriche repository

Star
 (1310 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.)

Guida contributor