How to update when field xyz="something" on graphql queries instead of updating by id

Found the solution(or should I say workaround). That is to first query for finding the id, then use that id to update the type. Shown below is an example. From the first query we get the id, using that we update the type on the second query. As far as my understanding goes, Updating the type by searching for fields is a two step process, you find the thing, and then you update the thing(I might be wrong). But the benefit of directly updating the type without going through finding the thing manually is that you save an extra query. And in my opinion, graphql is all about efficiency. Would love to have it all combined togther in the future. As of now, here is the solution.

query {  // This gives us the id back
	todoers(where: {uname_contains:"y"}) {
    id 
  }
}

mutation {  // Use the id found from previous queries
  updateTodoer(input:{where:{id:5}, data:{uname:"something"}}) {
    todoer {
      uname, pass, id   
    }
  }
}