Backend Version Update 1.4.0 - peer-network/peer_backend GitHub Wiki
GraphQL Schema Update Log
1.3.0 → 1.4.0
Guest Schema Version 1.3.0 → Version 1.4.0
Changes in the Schema
verifyAccount
Modified Mutation: Change: Return type changed from custom type verifyAccount
to DefaultResponse
.
Before:
verifyAccount(userid: ID!): verifyAccount!
After:
verifyAccount(userid: ID!): DefaultResponse!
requestPasswordReset
Modified Mutation: Change: Return type changed from StandardResponse
to DefaultResponse!
.
Before:
requestPasswordReset(email: String!): StandardResponse
After:
requestPasswordReset(email: String!): DefaultResponse!
resetPassword
Modified Mutation: Change: Return type changed from StandardResponse
to DefaultResponse
.
Before:
resetPassword(token: String!, password: String!): StandardResponse
After:
resetPassword(token: String!, password: String!): DefaultResponse
contactus
Modified Mutation: Change: Return type changed from StandardResponse!
to ContactusResponse!
.
Before:
contactus(name: String!, email: String!, message: String!): StandardResponse!
After:
contactus(name: String!, email: String!, message: String!): ContactusResponse!
ContactusResponsePayload
Added Type: type ContactusResponsePayload {
msgid: Decimal,
email: String,
name: String,
message: String,
ip: String,
createdat: String
}
ContactusResponse
Modified Type: Change: Field affectedRows
changed from type JSON
to ContactusResponsePayload
.
Before:
type StandardResponse {
status: String!
ResponseCode: String
affectedRows: JSON
}
After:
type ContactusResponse {
status: String!
ResponseCode: String
affectedRows: ContactusResponsePayload
}
referralUuid
to RegistrationInput
Added Input Field: Before:
input RegistrationInput {
email: String!
password: String!
username: String!
pkey: String
}
After:
input RegistrationInput {
email: String!
password: String!
username: String!
pkey: String
referralUuid: ID
}
GraphQL Schema Update Log
1.3.0 → 1.4.0
User Schema Version 1.3.0 → Version 1.4.0
Changes in the Schema
getReferralInfo
Added Query: getReferralInfo: ReferralInfoResponse!
referralList
Added Query: referralList(offset: Int, limit: Int): ReferralListResponse!
listTodaysInteractions
Modified Query: Change: Return type changed from StandardResponse!
to ListTodaysInteractionsResponse!
.
Before:
listTodaysInteractions: StandardResponse!
After:
listTodaysInteractions: ListTodaysInteractionsResponse!
ListTodaysInteractionsResponse
Added Type: type ListTodaysInteractionsResponse {
status: String!
ResponseCode: String
affectedRows: TodaysInteractionsData
}
TodaysInteractionsData
Added Type: type TodaysInteractionsData {
totalInteractions: Decimal
totalScore: Decimal
totalDetails: TodaysInteractionsDetailsData
}
TodaysInteractionsDetailsData
Added Type: type TodaysInteractionsDetailsData {
views: Decimal
likes: Decimal
dislikes: Decimal
comments: Decimal
viewsScore: Decimal
likesScore: Decimal
dislikesScore: Decimal
commentsScore: Decimal
}
Post
Modified Field in Type: Field Modified: tags
Change: From custom scalar TagList!
to list of strings [String]!
.
Before:
tags: TagList!
After:
tags: [String]!
Added Types for Referral System
type ReferralInfoResponse {
status: String
ResponseCode: String
referralUuid: ID
referralLink: String
}
type ReferralListResponse {
status: String!
counter: Int!
ResponseCode: String!
affectedRows: ReferralUsers!
}
type ReferralUsers {
invitedBy: ProfileUser
iInvited: [ProfileUser!]!
}