updated codegen, added client query generation, etc.
This commit is contained in:
parent
864f37a652
commit
9518787206
17 changed files with 5244 additions and 445 deletions
|
|
@ -1,10 +1,7 @@
|
|||
import { BookInput, Book } from "@generated/graphql";
|
||||
import { books } from "./booksManyResolver";
|
||||
|
||||
export async function BookOneResolver(
|
||||
_: any,
|
||||
{ ...input }: BookInput,
|
||||
): Promise<Book> {
|
||||
export async function BookOneResolver(_: any, input: BookInput): Promise<Book> {
|
||||
console.log("Called 'BookOneResolver' resolver...");
|
||||
|
||||
const book = books.filter((item) => item.id === input.id)[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue