Using event : projection on Reviews
This commit is contained in:
@@ -8,9 +8,9 @@ service ReviewsService {
|
|||||||
action unlike (review: type of Reviews:ID);
|
action unlike (review: type of Reviews:ID);
|
||||||
|
|
||||||
// Async API
|
// Async API
|
||||||
event reviewed : {
|
event reviewed : projection on Reviews {
|
||||||
subject: type of Reviews:subject;
|
subject,
|
||||||
rating: Decimal(2,1)
|
rating
|
||||||
}
|
}
|
||||||
|
|
||||||
// Input validation
|
// Input validation
|
||||||
|
|||||||
Reference in New Issue
Block a user