Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
export async function getServerSideProps() {
const parseQuery = new Parse.Query("Message");
parseQuery.greaterThanOrEqualTo('createdAt', new Date());
return {
props: {
parseQuery: await encodeParseQuery(parseQuery), // Return encoded Parse Query for server side rendering
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment