mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
add placeholder responses to get typescript to stop screaming
This commit is contained in:
@@ -1,16 +1,28 @@
|
|||||||
import { NotificationInput, Resolvers } from "../generated/graphql";
|
import { NotificationInput, NotificationResponse, Resolvers } from "../generated/graphql";
|
||||||
import { ServerContext } from "../ServerContext";
|
import { ServerContext } from "../ServerContext";
|
||||||
|
|
||||||
export const MutationResolvers: Resolvers<ServerContext> = {
|
export const MutationResolvers: Resolvers<ServerContext> = {
|
||||||
Mutation: {
|
Mutation: {
|
||||||
scheduleNotification: async (_parent, args, context, _info) => {
|
scheduleNotification: async (_parent, args, context, _info) => {
|
||||||
|
const response: NotificationResponse = {
|
||||||
|
message: "Not implemented",
|
||||||
|
success: false
|
||||||
|
}
|
||||||
|
return response;
|
||||||
},
|
},
|
||||||
cancelNotification: async (_parent, args, context, _info) => {
|
cancelNotification: async (_parent, args, context, _info) => {
|
||||||
|
const response: NotificationResponse = {
|
||||||
|
message: "Not implemented",
|
||||||
|
success: false
|
||||||
|
}
|
||||||
|
return response;
|
||||||
},
|
},
|
||||||
cancelAllNotifications: async (_parent, args, context, _info) => {
|
cancelAllNotifications: async (_parent, args, context, _info) => {
|
||||||
|
const response: NotificationResponse = {
|
||||||
|
message: "Not implemented",
|
||||||
|
success: false
|
||||||
|
}
|
||||||
|
return response;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user