From 19c407fdf157575abe56ecc16e7f4c828b4ab419 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 12 Jan 2020 11:37:55 +0100 Subject: [PATCH] Add event and eventCount to User - Add event field to UserData API interface - Add eventCount field to UserData API interface --- CHANGELOG.md | 1 + src/graphql/schema.graphql | 20 +++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd8da81..4e56d89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - getActivities field to receive all activities - createActivity mutation - activities table +- event and eventCount to UserData gql interface ### Removed diff --git a/src/graphql/schema.graphql b/src/graphql/schema.graphql index edfeabc..1d3e953 100644 --- a/src/graphql/schema.graphql +++ b/src/graphql/schema.graphql @@ -138,9 +138,15 @@ interface UserData { "The groups the user has joined" groups(first: Int=10, offset: Int=0): [Group] - "The numbef of groups the user has joined" + "The number of groups the user has joined" groupCount: Int! + "The events the user is participating in" + events(first: Int=10, offset: Int=0): [Event] + + "The number of events the user is participating in" + eventCount: Int! + "the points of the user" points: Int! @@ -189,6 +195,12 @@ type User implements UserData{ "The numbef of groups the user has joined" groupCount: Int! + "The events the user is participating in" + events(first: Int=10, offset: Int=0): [Event] + + "The number of events the user is participating in" + eventCount: Int! + "the levels of the user depending on the points" level: Int! } @@ -251,6 +263,12 @@ type Profile implements UserData { "The numbef of groups the user has joined" groupCount: Int! + "The events the user is participating in" + events(first: Int=10, offset: Int=0): [Event] + + "The number of events the user is participating in" + eventCount: Int! + "the points of the user" points: Int!