feat: page history pagination + dark mode fix
This commit is contained in:
@@ -13,7 +13,8 @@ module.exports = {
|
||||
async history(obj, args, context, info) {
|
||||
return WIKI.models.pageHistory.getHistory({
|
||||
pageId: args.id,
|
||||
offset: args.offset || 0
|
||||
offsetPage: args.offsetPage || 0,
|
||||
offsetSize: args.offsetSize || 100
|
||||
})
|
||||
},
|
||||
async list(obj, args, context, info) {
|
||||
|
@@ -17,8 +17,9 @@ extend type Mutation {
|
||||
type PageQuery {
|
||||
history(
|
||||
id: Int!
|
||||
offset: Int
|
||||
): [PageHistory]
|
||||
offsetPage: Int
|
||||
offsetSize: Int
|
||||
): PageHistoryResult
|
||||
|
||||
list(
|
||||
filter: String
|
||||
@@ -107,3 +108,8 @@ type PageHistory {
|
||||
valueAfter: String
|
||||
createdAt: Date!
|
||||
}
|
||||
|
||||
type PageHistoryResult {
|
||||
trail: [PageHistory]
|
||||
total: Int!
|
||||
}
|
||||
|
Reference in New Issue
Block a user