# Interest Mutations
These are the mutations defined under the interest gql module.
# addInterest
addInterest(interest: IInterest!) : Boolean
1
add an interest item for the user
# updateInterestList
updateInterestList(interests: [IInterest]!) : Boolean
1
update interest list of the user for already existing interests
# cleanUpdateInterestList
cleanUpdateInterestList(interests: [IInterest]!) : Boolean
1
update interest list of the user after cleaning the previous interest list
# updateInterest
updateInterest(interest: String!, update: UInterest!) : Boolean
1
update a single interest item for the user
# muteInterest
muteInterest(interest: String!) : Boolean
1
update the score for an interest item of a user to -1. Which will prevent any posts with that keyword in it from showing up.
# unMuteOrResetInterest
unMuteOrResetInterest(interest: String!) : Boolean
1
update the score for an interest item of a user to 0.2. Which is the same as resetting the score of that specific interest.
# removeInterest
removeInterest(interest: String!) : Boolean
1
remove an interest from the list made for a user
# Graphql Schema
gql schema for this model goes
type Mutation {
addInterest(interest: IInterest!) : Boolean
updateInterestList(interests: [IInterest]!) : Boolean
cleanUpdateInterestList(interests: [IInterest]!) : Boolean
updateInterest(interest: String!, update: UInterest!) : Boolean
muteInterest(interest: String!) : Boolean
unMuteOrResetInterest(interest: String!) : Boolean
removeInterest(interest: String!) : Boolean
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9