Add event and eventCount to User

- Add event field to UserData API interface
- Add eventCount field to UserData API interface
pull/4/head
trivernis 5 years ago
parent a0ecb36064
commit 19c407fdf1

@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- getActivities field to receive all activities - getActivities field to receive all activities
- createActivity mutation - createActivity mutation
- activities table - activities table
- event and eventCount to UserData gql interface
### Removed ### Removed

@ -138,9 +138,15 @@ interface UserData {
"The groups the user has joined" "The groups the user has joined"
groups(first: Int=10, offset: Int=0): [Group] 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! 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" "the points of the user"
points: Int! points: Int!
@ -189,6 +195,12 @@ type User implements UserData{
"The numbef of groups the user has joined" "The numbef of groups the user has joined"
groupCount: Int! 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" "the levels of the user depending on the points"
level: Int! level: Int!
} }
@ -251,6 +263,12 @@ type Profile implements UserData {
"The numbef of groups the user has joined" "The numbef of groups the user has joined"
groupCount: Int! 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" "the points of the user"
points: Int! points: Int!

Loading…
Cancel
Save