btubbs / garphunql

A Golang client library for making GraphQL requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a Dest field to Field (and deprecate Q)

btubbs opened this issue · comments

If we had a Dest field on Field then we could just pass a slice of Fields to QueryFields instead of a slice of the Q objects, and we wouldn't need the Q objects at all.

The thing that would be slightly dirty about it is that Dest would be required for all top-level fields, but forbidden for any more deeply nested fields.