2021-06-04 20:24:43 +02:00
|
|
|
import { ICurrentUserRole } from "@/types/enums";
|
|
|
|
|
|
|
|
export const defaultResolvers = {
|
|
|
|
Query: {
|
|
|
|
currentUser: (): Record<string, any> => ({
|
|
|
|
email: "user@mail.com",
|
|
|
|
id: "2",
|
|
|
|
role: ICurrentUserRole.USER,
|
|
|
|
isLoggedIn: true,
|
|
|
|
__typename: "CurrentUser",
|
|
|
|
}),
|
|
|
|
currentActor: (): Record<string, any> => ({
|
|
|
|
id: "67",
|
|
|
|
preferredUsername: "someone",
|
|
|
|
name: "Personne",
|
2022-04-06 14:25:21 +02:00
|
|
|
avatar: null,
|
2021-06-04 20:24:43 +02:00
|
|
|
__typename: "CurrentActor",
|
|
|
|
}),
|
|
|
|
},
|
|
|
|
};
|