Last active
January 3, 2016 03:20
-
-
Save sullivan-/ca39baf6637037529421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.github.nscala_time.time.Imports._ | |
import longevity.persistence.PState | |
import scala.concurrent.Future | |
val blogState: PState[Blog] = getBlogState() | |
val recentPosts: Future[Seq[PState[BlogPost]]] = blogPostRepo.retrieveByQuery { | |
import BlogPost.queryDsl._ | |
import BlogPost.props._ | |
blog eqs blogState.assoc and postDate gt DateTime.now - 1.week | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment