We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS Error
Type '() => { id: string; email: string; name: string; password: string; posts: null; }' is not assignable to type '{ id: string; email: string; name: string | null; password: string; posts: { id: string; title: string; authorId: string; content: string | null; user: ... | null; }[] | null; }'.ts(2322)
Example code: I took looks like callbacks are wrong argument for field schema
import { Elysia } from "elysia"; import { yoga } from "@elysiajs/graphql-yoga"; const typeDefs = /* GraphQL */ ` type User { id: ID! email: String! name: String password: String! posts: [Post!] } type Post { id: ID! title: String! authorId: String! content: String user: User } `; export const graphqlYogaPlugin = new Elysia().use( yoga({ typeDefs, resolvers: { Post: { user: () => { return { id: "1", email: "test", name: "test", password: "test", posts: null, }; }, }, }, }) );
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TS Error
Example code:
I took looks like callbacks are wrong argument for field schema
The text was updated successfully, but these errors were encountered: