docs: @View(name = "by_createdDate", map = "function(doc) { if(doc.record && doc.createdDate && doc.username) { emit(doc.createdDate, doc) } }")
      public List<CouchDbU2FDeviceRegistration> findByDateBefore(final LocalDate expirationDate) {
          return db.queryView(createQuery("by_createdDate").endKey(expirationDate), CouchDbU2FDeviceRegistration.class);
      }