reputation-api/src/services/reputation/components/member/member.schema.graphql

36 lines
592 B
GraphQL

type Query {
members: [Member]
member(id: String!): Member
}
type Member {
id: String!
reputation: Int!
ledger: [LedgerEntry]
}
type LedgerEntry {
timestamp: String
type: String
postId: String
citationId: String
change: Int
balance: Int
}
type Mutation {
createMember(id: String): Member
postRep(
memberId: String!,
postId: String!,
amount: Int!
): LedgerEntry
citationRep(
memberId: String!,
postId: String!,
citationId: String!,
amount: Int!
): LedgerEntry
}