Fair enough. Ordered doesn’t always mean “in the same order as the input”. In C++, a std::set
is ordered, but stores items in sorted order. In Python, however, an OrderedDict
retains the order of input.
I’ve looked at the spec and issues on GitHub and there is no indication of this there either, so perhaps we can move this from “GraphQL non-compliant” back to “nice-to-have”. Lists that retain their input order are definitely very useful - in the GraphQL survey forms app (schema) we built, we needed an order: Int
field containing the index of each item, just so that we could query them in order - which felt awkward.
I’m trying to get in touch with the GraphQL team via IRC/Slack/GitHub, I will update here if there is a reply.