Khan/genqlient

Make it possible to ask for a *[]T

Open

#16 geöffnet am 22. Apr. 2021

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (141 Forks)github user discovery
enhancementhelp wantedneeds use cases

Repository-Metriken

Stars
 (1.310 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide