diff --git a/schemas/core.graphql b/schemas/core.graphql index f4533aa2..7d2ac3a3 100644 --- a/schemas/core.graphql +++ b/schemas/core.graphql @@ -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! } diff --git a/services/schema.py b/services/schema.py index 94c4cb32..91c4c9dd 100644 --- a/services/schema.py +++ b/services/schema.py @@ -1,5 +1,6 @@ from ariadne import ScalarType, QueryType, MutationType + datetime_scalar = ScalarType("DateTime") query = QueryType() mutation = MutationType()