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

View File

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

View File

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