This commit is contained in:
2023-10-06 12:51:48 +03:00
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
scalar DateTime
type _Service {
sdl: String
}
@@ -224,7 +225,7 @@ type Query {
userFollowedAuthors(slug: String!): [Author]!
userFollowedTopics(slug: String!): [Topic]!
authorsAll: [Author]!
getAuthor(slug: String!): User
getAuthor(slug: String!): Author
myFeed(options: LoadShoutsOptions): [Shout]
# migrate
@@ -236,6 +237,8 @@ type Query {
topicsRandom(amount: Int): [Topic]!
topicsByCommunity(community: String!): [Topic]!
topicsByAuthor(author: String!): [Topic]!
# Apollo SDL
_service: _Service!
}

View File

@@ -1,5 +1,6 @@
from ariadne import ScalarType, QueryType, MutationType
datetime_scalar = ScalarType("DateTime")
query = QueryType()
mutation = MutationType()