genqlient icon indicating copy to clipboard operation
genqlient copied to clipboard

Be less strict about selection-set ordering

Open benjaminjkraft opened this issue 2 years ago • 0 comments

For both the bindings option, and the soon-to-be-added typename option, we validate that two selection sets are equal. Right now we demand that they even have the fields in the same order; ideally we'd allow any equivalent selections. That's surprisingly much work, although it's quite well separated from the rest of the codebase (just modify selectionsMatch in generate/validation.go).

benjaminjkraft avatar Sep 15 '21 00:09 benjaminjkraft