Khan/genqlient

Expand the flatten option to support fields

Open

#30 opened on Apr 22, 2021

View on GitHub
 (3 comments) (0 reactions) (1 assignee)Go (141 forks)github user discovery
enhancementhelp wanted

Repository metrics

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

Description

If you do mutation { MyMutation { error { code } } }, or something, we should be able to just return (code string, err error), at least if you ask us too. This would be a nice convenience -- the helper's callers no longer have to know as much about the query structure -- but the rules and logic to do it are surprisingly subtle.

Contributor guide