Backend Version Update 1.3.0 - peer-network/peer_backend GitHub Wiki
GraphQL Schema Update Log
1.2.0 → 1.3.0
Guest Schema
verifiedAccount
→ verifyAccount
Mutation: Before:
verifiedAccount(userid: ID!): verifiedAccount!
After:
verifyAccount(userid: ID!): verifyAccount!
Mutations Added
requestPasswordReset(email: String!): StandardResponse
resetPassword(token: String!, password: String!): StandardResponse
User Schema
searchuser
→ searchUser
Query: Before:
searchuser(userid: ID, username: String, offset: Int, limit: Int): UserSearchResponse!
After:
searchUser(userid: ID, username: String, offset: Int, limit: Int): UserListResponse!
getallusers
→ listUsers
Query: Before:
getallusers(offset: Int, limit: Int): UserSearchResponse!
After:
listUsers(offset: Int, limit: Int): UserListResponse!
profile
→ getProfile
Query: Before:
profile(userid: ID, postLimit: Int): ProfileInfo!
After:
getProfile(userid: ID, postLimit: Int): ProfileInfo!
follows
→ listFollowRelations
Query: Before:
follows(userid: ID, offset: Int, limit: Int): UserFollows!
After:
listFollowRelations(userid: ID, offset: Int, limit: Int): FollowRelationsResponse!
friends
→ listFriends
Query: Before:
friends(offset: Int, limit: Int): UserFriends!
After:
listFriends(offset: Int, limit: Int): UserFriendsResponse!
blockedlist
→ listBlockedUsers
Query: Before:
blockedlist(offset: Int, limit: Int): UserBlocked!
After:
listBlockedUsers(offset: Int, limit: Int): BlockedUsersResponse!
getallposts
→ listPosts
Query: Argument Type Changes:
filterBy
:FilterType!
→PostFilterType!
IgnorList
:IgnoredList
→IgnoreOption
sortBy
:SortType
→PostSortType
Before:
getallposts(filterBy: [FilterType!], IgnorList: IgnoredList, sortBy: SortType, userid: ID, postid: ID, title: String, tag: String, from: Date, to: Date, offset: Int, limit: Int, commentOffset: Int, commentLimit: Int): GetAllPostResponse!
After:
listPosts(filterBy: [PostFilterType!], IgnorList: IgnoreOption, sortBy: PostSortType, userid: ID, postid: ID, title: String, tag: String, from: Date, to: Date, offset: Int, limit: Int, commentOffset: Int, commentLimit: Int): PostListResponse!
parentcomments
→ listChildComments
Query: Before:
parentcomments(parent: ID!, offset: Int, limit: Int): CommentResponse!
After:
listChildComments(parent: ID!, offset: Int, limit: Int): CommentResponse!
tags
→ listTags
Query: Before:
tags(offset: Int, limit: Int): TagSearchResponse!
After:
listTags(offset: Int, limit: Int): TagSearchResponse!
tagsearch
→ searchTags
Query: Before:
tagsearch(tagname: String!, offset: Int, limit: Int): TagSearchResponse!
After:
searchTags(tagName: String!, offset: Int, limit: Int): TagSearchResponse!
searchchat
→ getChat
Query: Before:
searchchat(chatid: ID!, messageOffset: Int, messageLimit: Int): ChatResponse!
After:
getChat(chatid: ID!, messageOffset: Int, messageLimit: Int): ChatResponse!
readMessages
→ listChatMessages
Query: Before:
readMessages(chatid: ID!, offset: Int, limit: Int): AddChatmessageResponse!
After:
listChatMessages(chatid: ID!, offset: Int, limit: Int): AddChatmessageResponse!
updateName
→ updateUsername
Mutation: Before:
updateName(username: String!, password: String!): DefaultResponse!
After:
updateUsername(username: String!, password: String!): DefaultResponse!
updateMail
→ updateEmail
Mutation: Before:
updateMail(email: String!, password: String!): DefaultResponse!
After:
updateEmail(email: String!, password: String!): DefaultResponse!
updateBiography
→ updateBio
Mutation: Before:
updateBiography(biography: String!): DefaultResponse!
After:
updateBio(biography: String!): DefaultResponse!
updateProfilePicture
→ updateProfileImage
Mutation: Before:
updateProfilePicture(img: String!): DefaultResponse!
After:
updateProfileImage(img: String!): DefaultResponse!
userFollow
→ toggleUserFollowStatus
Mutation: Before:
userFollow(userid: ID!): setFollowUseresponse!
After:
toggleUserFollowStatus(userid: ID!): FollowStatusResponse!
userBlock
→ toggleBlockUserStatus
Mutation: Before:
userBlock(userid: ID!): DefaultResponse!
After:
toggleBlockUserStatus(userid: ID!): DefaultResponse!
resolveActionPost
→ resolvePostAction
Mutation: Enum Changed: ActionType
→ PostActionType
Before:
resolveActionPost(action: ActionType!, postid: ID!): DefaultResponse!
After:
resolvePostAction(action: PostActionType!, postid: ID!): DefaultResponse!