Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

adonis count with where

await UserRating.query().where('user_id', '=', 42).avg('rating')
Source by github.com #
 
PREVIOUS NEXT
Tagged: #adonis #count
ADD COMMENT
Topic
Name
2+5 =