implemented identity, updated session, added 'workings' list
added paginated querying, added 'common'
This commit is contained in:
parent
027deba422
commit
6ada519e06
36 changed files with 1422 additions and 279 deletions
12
app/server/graphql/resolvers/mappers/identityMapper.ts
Normal file
12
app/server/graphql/resolvers/mappers/identityMapper.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { Identity as IdentitySchema } from '@generated/types';
|
||||
import { User } from '@prisma/client';
|
||||
import { toUserSchema } from './userMapper';
|
||||
|
||||
export async function toIdentitySchema(model: User): Promise<IdentitySchema> {
|
||||
return {
|
||||
id: model.id,
|
||||
email: model.email,
|
||||
isDarkTheme: true,
|
||||
user: await toUserSchema(model)
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue