-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels