updated codegen, fixed tsconfig, added prisma
added login, registration and session check
This commit is contained in:
parent
9518787206
commit
04b606b7fa
24 changed files with 740 additions and 1747 deletions
|
|
@ -1,20 +1,20 @@
|
|||
import { createLazyFileRoute } from "@tanstack/react-router";
|
||||
import { gql, useQuery } from "@apollo/client";
|
||||
// import { gql } from '@apollo/client';
|
||||
import { createLazyFileRoute } from '@tanstack/react-router';
|
||||
|
||||
export const Route = createLazyFileRoute("/book")({
|
||||
component: RouteComponent,
|
||||
export const Route = createLazyFileRoute('/book')({
|
||||
component: RouteComponent
|
||||
});
|
||||
|
||||
function RouteComponent() {
|
||||
return <div>"/book"</div>;
|
||||
}
|
||||
|
||||
const getBookQuery = gql`
|
||||
query BookOne {
|
||||
booksMany {
|
||||
id
|
||||
author
|
||||
title
|
||||
}
|
||||
}
|
||||
`;
|
||||
// const getBookQuery = gql`
|
||||
// query BookOne {
|
||||
// booksMany {
|
||||
// id
|
||||
// author
|
||||
// title
|
||||
// }
|
||||
// }
|
||||
// `;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue