mutation auth($username:String!, $password:String!){ tokenAuth(username:$username, password:$password){ token } } mutation register($username:String!, $password:String!){ createUser(username:$username, password:$password){ ok } } query getMaterials($token: String){ materialsByUser(token:$token){ content id } } mutation UpdateDoc($id:ID, $content:String){ updateDoc(content:$content, id:$id){ ok } } query getMaterialByID($id:ID!){ material(id:$id){ content } }