Replies: 3 comments 2 replies
-
@wakywayne I believe your issue was resolved? |
Beta Was this translation helpful? Give feedback.
-
upgrading yoga to v3 resolved the issue yes thank you. HOWEVER, I still would like to know how to break up your pothos schemas into different files and import them. into the final schema, I can't find anything on this in the docs. |
Beta Was this translation helpful? Give feedback.
-
sorry I didn't get to this sooner, I've been traveling a bit, and haven't had as much time the last couple weeks. Splitting up your schema into multiple files should be pretty straight forward. Pothos isn't opinionated about how you do this. The pattern I generally use is:
import './types/user'
import './types/post'
import { builder } from './builder'
export const schema = builder.toSchema({}) There are some docs around this here: |
Beta Was this translation helpful? Give feedback.
-
The Problem:
I need to be able to break up the resolvers and schema from the pothos builder so I can switch over to apollo server.
Why do I need to switch over to apollo server?
I am forced to switch to Apollo Server as my yoga graphiql query interface is non-responsive despite deleting node_modules and .next folders. I am unable to type a word or move the insert cursor. I have had trouble shooted for a full day and now I have decided to just switch over to the apollo server
Apollo builds their server like this:
But my previous server with yoga was like this:
This is my schema builder incase it is relevant information
Beta Was this translation helpful? Give feedback.
All reactions