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

Modified Mutation: verifyAccount

Change: Return type changed from custom type verifyAccount to DefaultResponse.

Before:

verifyAccount(userid: ID!): verifyAccount!

After:

verifyAccount(userid: ID!): DefaultResponse!

Modified Mutation: requestPasswordReset

Change: Return type changed from StandardResponse to DefaultResponse!.

Before:

requestPasswordReset(email: String!): StandardResponse

After:

requestPasswordReset(email: String!): DefaultResponse!

Modified Mutation: resetPassword

Change: Return type changed from StandardResponse to DefaultResponse.

Before:

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

After:

resetPassword(token: String!, password: String!): DefaultResponse

Modified Mutation: contactus

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!

Added Type: ContactusResponsePayload

type ContactusResponsePayload {
  msgid: Decimal,
  email: String,
  name: String,
  message: String,
  ip: String,
  createdat: String
}

Modified Type: ContactusResponse

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
}

Added Input Field: referralUuid to RegistrationInput

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


Added Query: getReferralInfo

getReferralInfo: ReferralInfoResponse!

Added Query: referralList

referralList(offset: Int, limit: Int): ReferralListResponse!

Modified Query: listTodaysInteractions

Change: Return type changed from StandardResponse! to ListTodaysInteractionsResponse!.

Before:

listTodaysInteractions: StandardResponse!

After:

listTodaysInteractions: ListTodaysInteractionsResponse!

Added Type: ListTodaysInteractionsResponse

type ListTodaysInteractionsResponse {
  status: String!
  ResponseCode: String
  affectedRows: TodaysInteractionsData
}

Added Type: TodaysInteractionsData

type TodaysInteractionsData {
  totalInteractions: Decimal
  totalScore: Decimal
  totalDetails: TodaysInteractionsDetailsData
}

Added Type: TodaysInteractionsDetailsData

type TodaysInteractionsDetailsData {
  views: Decimal
  likes: Decimal
  dislikes: Decimal
  comments: Decimal
  viewsScore: Decimal
  likesScore: Decimal
  dislikesScore: Decimal
  commentsScore: Decimal
}

Modified Field in Type: Post

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!]!
}