feat: admin dashboard recent pages + update deps

This commit is contained in:
Nick
2019-08-31 15:00:31 -04:00
parent 3b02d701c4
commit 28c443c356
11 changed files with 337 additions and 247 deletions

View File

@@ -27,7 +27,11 @@ type PageQuery {
locale: String
): PageSearchResponse! @auth(requires: ["manage:system", "read:pages"])
list: [PageListItem!]! @auth(requires: ["manage:system"])
list(
limit: Int
orderBy: PageOrderBy
orderByDirection: PageOrderByDirection
): [PageListItem!]! @auth(requires: ["manage:system"])
single(
id: Int!
@@ -163,3 +167,16 @@ type PageListItem {
createdAt: Date!
updatedAt: Date!
}
enum PageOrderBy {
CREATED
ID
PATH
TITLE
UPDATED
}
enum PageOrderByDirection {
ASC
DESC
}