Release notes v0.4.41: Ability to order by custom field in getPosts

·
Baptiste
·kjzl6cwe1jw1-xetxbc2raru4

Hey everyone!

We added the ability to order by custom fields in the getPosts function, here is how to use this:

let { data, error } = await orbis.getPosts({  
    order_by: 'last_reply_timestamp'  
});  

In this example, the posts will be returned based on last_reply_timestamp order (which is a new field that we added). This is example to order the posts on the right side of the forum for example.

Let me know if you have any questions!

Be the first to leave a comment here.