Skip to content

Maps instead of vectors for queries of sub-objects? #24

@devurandom

Description

@devurandom

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions