It would be really useful to be able to filter a Posting List by an ID, as you can do for the root query level.
E.g. in the friends node below.
me (id: <uid>) {
name
friends (id: <uid>) {
name
}
}
At the moment, it doesn’t throw an error if I try and run this, but it will also not filter anything (returning the entire PL as if I had not added a filter at all).
Use Case
Check if a particular friend exists or not, so I can say whether they are friends, and if they do exist return their details.
Check if a user has the correct level of permissions.
Not sure if there is another way to achieve this functionality, I’d welcome any comment. Either way, I think adding a feature to allow filtering of a PL by ID would be useful.
We could potentially have a uid function, which can be used for the purposes of filtering, or even at the root, instead of id: <uid>. If you think this is useful, feel free to file a Github issue, and we’ll get to it.