I am trying to check weather an account associated with the same username already exists or not. I am using the exist method to check but I keep getting a large object instead of a Boolean value.
async checkExisting(username,userCollection) { //WORK ON ISSUE WITH VERIFYING
        const check = new Promise((resolve,reject) => {
            let value = userCollection.exists({username})
            console.log(value);
            // if(userCollection.exists({username})) {
            //     reject("Username taken")
            // }
            resolve("Username avaliable")
        })
        return check;
    },
 
     
     
    