Graphql findOne by slug

What i’ve done to come up with a solution is to query posts(not post) by filtering by slug and limit the result to 1 using limit:1. Then you only need to fetch the first element.