updated context
This commit is contained in:
parent
04b606b7fa
commit
40c35bda13
7 changed files with 67 additions and 25 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { IdentityContext } from '@app/server/identity';
|
||||
import { Book } from '@generated/types';
|
||||
|
||||
export const books = [
|
||||
|
|
@ -13,6 +14,10 @@ export const books = [
|
|||
}
|
||||
];
|
||||
|
||||
export async function BooksManyResolver(_: any): Promise<Book[]> {
|
||||
export async function BooksManyResolver(
|
||||
_: any,
|
||||
__: any,
|
||||
{ identity }: IdentityContext
|
||||
): Promise<Book[]> {
|
||||
return books;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue