Example: you want to check if you are already following a specific user. This would determine whether you show the Follow or Unfollow button.
What is the best way to query for this information using
EDIT: It seems that you must use
ctx.db.exists.User instead of
ctx.db.exists.user – this was my issue.