Backend Version Update 1.3.0 - peer-network/peer_backend GitHub Wiki

GraphQL Schema Update Log

1.2.0 → 1.3.0


Guest Schema

Mutation: verifiedAccountverifyAccount

Before:

verifiedAccount(userid: ID!): verifiedAccount!

After:

verifyAccount(userid: ID!): verifyAccount!

Mutations Added

requestPasswordReset(email: String!): StandardResponse
resetPassword(token: String!, password: String!): StandardResponse

User Schema


Query: searchusersearchUser

Before:

searchuser(userid: ID, username: String, offset: Int, limit: Int): UserSearchResponse!

After:

searchUser(userid: ID, username: String, offset: Int, limit: Int): UserListResponse!

Query: getalluserslistUsers

Before:

getallusers(offset: Int, limit: Int): UserSearchResponse!

After:

listUsers(offset: Int, limit: Int): UserListResponse!

Query: profilegetProfile

Before:

profile(userid: ID, postLimit: Int): ProfileInfo!

After:

getProfile(userid: ID, postLimit: Int): ProfileInfo!

Query: followslistFollowRelations

Before:

follows(userid: ID, offset: Int, limit: Int): UserFollows!

After:

listFollowRelations(userid: ID, offset: Int, limit: Int): FollowRelationsResponse!

Query: friendslistFriends

Before:

friends(offset: Int, limit: Int): UserFriends!

After:

listFriends(offset: Int, limit: Int): UserFriendsResponse!

Query: blockedlistlistBlockedUsers

Before:

blockedlist(offset: Int, limit: Int): UserBlocked!

After:

listBlockedUsers(offset: Int, limit: Int): BlockedUsersResponse!

Query: getallpostslistPosts

Argument Type Changes:

  • filterBy: FilterType!PostFilterType!
  • IgnorList: IgnoredListIgnoreOption
  • sortBy: SortTypePostSortType

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!

Query: parentcommentslistChildComments

Before:

parentcomments(parent: ID!, offset: Int, limit: Int): CommentResponse!

After:

listChildComments(parent: ID!, offset: Int, limit: Int): CommentResponse!

Query: tagslistTags

Before:

tags(offset: Int, limit: Int): TagSearchResponse!

After:

listTags(offset: Int, limit: Int): TagSearchResponse!

Query: tagsearchsearchTags

Before:

tagsearch(tagname: String!, offset: Int, limit: Int): TagSearchResponse!

After:

searchTags(tagName: String!, offset: Int, limit: Int): TagSearchResponse!

Query: searchchatgetChat

Before:

searchchat(chatid: ID!, messageOffset: Int, messageLimit: Int): ChatResponse!

After:

getChat(chatid: ID!, messageOffset: Int, messageLimit: Int): ChatResponse!

Query: readMessageslistChatMessages

Before:

readMessages(chatid: ID!, offset: Int, limit: Int): AddChatmessageResponse!

After:

listChatMessages(chatid: ID!, offset: Int, limit: Int): AddChatmessageResponse!

Mutation: updateNameupdateUsername

Before:

updateName(username: String!, password: String!): DefaultResponse!

After:

updateUsername(username: String!, password: String!): DefaultResponse!

Mutation: updateMailupdateEmail

Before:

updateMail(email: String!, password: String!): DefaultResponse!

After:

updateEmail(email: String!, password: String!): DefaultResponse!

Mutation: updateBiographyupdateBio

Before:

updateBiography(biography: String!): DefaultResponse!

After:

updateBio(biography: String!): DefaultResponse!

Mutation: updateProfilePictureupdateProfileImage

Before:

updateProfilePicture(img: String!): DefaultResponse!

After:

updateProfileImage(img: String!): DefaultResponse!

Mutation: userFollowtoggleUserFollowStatus

Before:

userFollow(userid: ID!): setFollowUseresponse!

After:

toggleUserFollowStatus(userid: ID!): FollowStatusResponse!

Mutation: userBlocktoggleBlockUserStatus

Before:

userBlock(userid: ID!): DefaultResponse!

After:

toggleBlockUserStatus(userid: ID!): DefaultResponse!

Mutation: resolveActionPostresolvePostAction

Enum Changed: ActionTypePostActionType

Before:

resolveActionPost(action: ActionType!, postid: ID!): DefaultResponse!

After:

resolvePostAction(action: PostActionType!, postid: ID!): DefaultResponse!