@View(name = "by_token", map = "function(doc) { if(doc.token && doc.userId) { emit(doc.token, doc) } }")
    public List<CouchDbGoogleAuthenticatorToken> findByToken(final Integer otp) {
        return queryView("by_token", otp);
    }
@ View ( name = "by_token" , map = "function(doc) { if(doc.token && doc.userId) { emit(doc.token, doc) } }" ) public List < CouchDbGoogleAuthenticatorToken > findByToken ( final Integer otp ) { return queryView ( "by_token" , otp ) ; }
Find by token.

@param otp token to search for
@return token for the otp