mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 08:22:50 +00:00
51106841ab
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
19 lines
462 B
TypeScript
19 lines
462 B
TypeScript
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",
|
|
__typename: "CurrentActor",
|
|
}),
|
|
},
|
|
};
|