Initial commit
This commit is contained in:
commit
864f37a652
48 changed files with 45596 additions and 0 deletions
20
app/server/graphql/resolvers/booksManyResolver.ts
Normal file
20
app/server/graphql/resolvers/booksManyResolver.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Book } from "@generated/graphql";
|
||||
|
||||
export const books = [
|
||||
{
|
||||
id: "1",
|
||||
title: "some-title-1",
|
||||
author: "someone",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
title: "some-title-1",
|
||||
author: "someone",
|
||||
},
|
||||
];
|
||||
|
||||
export async function BooksManyResolver(_: any): Promise<Book[]> {
|
||||
console.log("Called 'BooksManyResolver' resolver...");
|
||||
|
||||
return books;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue