How do i create a dynamic query in amplify react application
Expected Query:
const posts = await DataStore.query(Post, c => c.or(
c => c.rating("gt", 4).status("eq", PostStatus.PUBLISHED)
));
'rating' and 'status' may change depends on user. Please help me to create a dynamic datastore query.