@@ -0,0 +1,254 @@
+package com.pollistics.repositories;%0A%0Aimport org.springframework.data.mongodb.repository.MongoRepository;%0Aimport com.pollistics.models.User;%0A%0Apublic interface UserRepository extends MongoRepository%3CUser,String%3E %7B%0A%09User findByUsername(String username);%0A%7D%0A

Add findByUsername