Vincit/venia

Maps instead of vectors for queries of sub-objects?

Opened this issue · 0 comments

When looking at the query syntax [:friends [:name :email]], it appears slightly odd that for the object referenced by :friends, GraphQL requires us to write the attributes we would like to receive next to the sub-object (i.e. in pairs), but in Clojure we are using an array, which does not enforce its members to be pairs. I was thinking that {:friends [:name :email]} would be a more intuitive syntax. This should help a newcomer, who does not yet have experience with Venia, but knows GraphQL, to understand the queries at first glance and might give even experts some visual "handrail". What do you think?