From 5c14ac3f6708c5dc8307a241a994f6c0b8997d74 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 1 May 2017 10:58:29 -0300 Subject: [PATCH] =?UTF-8?q?=C3=81dding=20LIKE=20to=20the=20plugin=20graph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coral-plugin-like/server/typeDefs.graphql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/coral-plugin-like/server/typeDefs.graphql b/plugins/coral-plugin-like/server/typeDefs.graphql index 1f94caf07..1a1100754 100644 --- a/plugins/coral-plugin-like/server/typeDefs.graphql +++ b/plugins/coral-plugin-like/server/typeDefs.graphql @@ -4,6 +4,12 @@ enum ACTION_TYPE { LIKE } +enum ASSET_METRICS_SORT { + + # Represents a LikeAction. + LIKE +} + input CreateLikeInput { # The item's id for which we are to create a like. @@ -38,6 +44,16 @@ type LikeActionSummary implements ActionSummary { current_user: LikeAction } +# A summary of counts related to all the Likes on an Asset. +type LikeAssetActionSummary implements AssetActionSummary { + + # Number of likes associated with actionable types on this this Asset. + actionCount: Int + + # Number of unique actionable types that are referenced by the likes. + actionableItemCount: Int +} + type CreateLikeResponse implements Response { # The like that was created.