Skip to content

Instantly share code, notes, and snippets.

@erwan
Last active August 29, 2015 14:07
Show Gist options
  • Save erwan/f1cca71970ad71a4c6ef to your computer and use it in GitHub Desktop.
Save erwan/f1cca71970ad71a4c6ef to your computer and use it in GitHub Desktop.
Api.get("https://lesbonneschoses.prismic.io/api").flatMap { api =>
api.forms("everything").ref(api.master).query(
Predicate.at("document.type", "blog-post"),
Predicate.dateAfter("my.blog-post.date", new DateTime(2014, 6, 1, 0, 0))
).submit().map { response =>
// All documents of type "product", updated after June 1st, 2014
response
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment