Skip to content
Discussion options

You must be logged in to vote

I have addressed this by:

  • creating a view, from which to hold the the review record - its ID alongside sort parameters (review rating, shared attributes count, date, helpfulness etc)
  • creating a top-level computed field, that returns a set of this view - here is where the complexity lies, e.g. in calculating the number of "helpful" votes, whatever else
  • I created an object relation between review_id and reviews.id, such that traversing the graph (e.g. for filtering) is still possible nested by one more level, e.g. before I had (where: {rating: {_gt: 3}}) now I have (where: {review: {rating: {_gt: 3}}})

it feels like a long way round, although I'm actually quite pleased with the separation…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackherizsmith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant