views from ackee
This commit is contained in:
@@ -191,49 +191,49 @@ type Mutation {
|
||||
unfollow(what: FollowingEntity!, slug: String!): Result!
|
||||
}
|
||||
|
||||
input MessagesBy {
|
||||
interface By {
|
||||
order: String
|
||||
days: Int
|
||||
stat: String
|
||||
}
|
||||
|
||||
input MessagesBy implements By {
|
||||
author: String
|
||||
body: String
|
||||
chat: String
|
||||
days: Int
|
||||
}
|
||||
|
||||
input AuthorsBy {
|
||||
input AuthorsBy implements By{
|
||||
lastSeen: DateTime
|
||||
createdAt: DateTime
|
||||
stat: String
|
||||
slug: String
|
||||
name: String
|
||||
topic: String
|
||||
}
|
||||
|
||||
input ShoutsBy {
|
||||
input ShoutsBy implements By {
|
||||
slug: String
|
||||
title: String
|
||||
body: String
|
||||
topic: String
|
||||
author: String
|
||||
days: Int
|
||||
layout: String
|
||||
published: Boolean
|
||||
visibility: String
|
||||
stat: String
|
||||
}
|
||||
|
||||
input ReactionBy {
|
||||
input ReactionBy implements By {
|
||||
shout: String
|
||||
body: String
|
||||
topic: String
|
||||
author: String
|
||||
days: Int
|
||||
stat: String
|
||||
}
|
||||
################################### Query
|
||||
|
||||
type Query {
|
||||
# inbox
|
||||
loadChats(offset: Int, amount: Int): Result! # your chats
|
||||
loadMessagesBy(by: MessagesBy!, amount: Int, offset: Int): Result!
|
||||
loadMessagesBy(by: By & MessagesBy!, amount: Int, offset: Int): Result!
|
||||
searchUsers(query: String!, amount: Int, offset: Int): Result!
|
||||
|
||||
# auth
|
||||
@@ -242,9 +242,9 @@ type Query {
|
||||
signOut: AuthResult!
|
||||
|
||||
# zine
|
||||
loadAuthorsBy(by: AuthorsBy, amount: Int, offset: Int): [Author]!
|
||||
loadShoutsBy(by: ShoutsBy, amount: Int, offset: Int): [Shout]!
|
||||
loadReactionsBy(by: ReactionBy!, amount: Int, limit: Int): [Reaction]!
|
||||
loadAuthorsBy(by: By & AuthorsBy, amount: Int, offset: Int): [Author]!
|
||||
loadShoutsBy(by: By & ShoutsBy, amount: Int, offset: Int): [Shout]!
|
||||
loadReactionsBy(by: By & ReactionBy!, amount: Int, limit: Int): [Reaction]!
|
||||
userFollowers(slug: String!): [Author]!
|
||||
userFollowedAuthors(slug: String!): [Author]!
|
||||
userFollowedTopics(slug: String!): [Topic]!
|
||||
|
Reference in New Issue
Block a user