corrected schema

This commit is contained in:
Ulf Gebhardt 2023-05-23 12:56:35 +02:00
parent 951a35df1e
commit 8324ae4b3a
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
4 changed files with 24 additions and 24 deletions

View File

@ -10,12 +10,12 @@ const driver = getDriver()
const mutationShoutPost = gql`
mutation ($id: ID!) {
shout(id: $id, type: "Post")
shout(id: $id, type: Post)
}
`
const mutationUnshoutPost = gql`
mutation ($id: ID!) {
unshout(id: $id, type: "Post")
unshout(id: $id, type: Post)
}
`
const queryPost = gql`

View File

@ -1,19 +1,16 @@
type Embed {
type: String
title: String
author: String
publisher: String
date: String
description: String
url: String
image: String
audio: String
video: String
lang: String
html: String
sources: [String]
enum ShoutTypeEnum {
Post
}
type Query {
embed(url: String!): Embed
type Reward {
id: ID!
user: User @relation(name: "REWARDED", direction: "IN")
rewarderId: ID
createdAt: String
badge: Badge @relation(name: "REWARDED", direction: "OUT")
}
type SharedInboxEndpoint {
id: ID!
uri: String
}

View File

@ -208,8 +208,10 @@ type Mutation {
unpinPost(id: ID!): Post
markTeaserAsViewed(id: ID!): Post
shout(id: ID!, type: String!): Boolean
unshout(id: ID!, type: String!): Boolean
# Shout the given Type and ID
shout(id: ID!, type: ShoutTypeEnum): Boolean!
# Unshout the given Type and ID
unshout(id: ID!, type: ShoutTypeEnum): Boolean!
}
type Query {

View File

@ -225,9 +225,10 @@ type Mutation {
saveCategorySettings(activeCategories: [String]): Boolean
requestPasswordReset(email: String!): Boolean
resetPassword(nonce: String!, email: String!, newPassword: String!): Boolean
changePassword(oldPassword: String!, newPassword: String!): String
requestPasswordReset(email: String!): Boolean!
resetPassword(email: String!, nonce: String!, newPassword: String!): Boolean!
changePassword(oldPassword: String!, newPassword: String!): String!
login(email: String!, password: String!): String
# Get a JWT Token for the given Email and password
login(email: String!, password: String!): String!
}