implemented session
This commit is contained in:
parent
b6b7cea210
commit
d179b8c7c8
9 changed files with 700 additions and 783 deletions
|
|
@ -19,5 +19,6 @@ export async function BooksManyResolver(
|
|||
__: any,
|
||||
{ identity }: IdentityContext
|
||||
): Promise<Book[]> {
|
||||
if (identity == null) throw Error('Unauthorized');
|
||||
return books;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue