Hacker News new | ask | show | jobs
by achr2 4068 days ago
Since there is already a mix of predicates within the query (for sub objects) they should have unified the syntax. Something like:

user {

    id: 3500401,

    name,

    isViewerFriend,

    profilePicture  {

      size= 50,

      uri,

      width,

      height

    }

  }
As shown you could use a different indicator for filter properties that should not be included in the serialized object graph.
1 comments

Yeah, it's odd. It's not clear why they're just not using json... json will give you an homoiconic language of arbitrary descriptive power.