Why is code from imported file not executed in server API route ? #361
Answered
by
hayes
lewebsimple
asked this question in
Q&A
-
I'm trying to define a modular GraphQL schema as suggested here. Let's say we have
...and Why is the console only outputting "Hello from server/api/hello.ts" (twice?) and not executing the other |
Beta Was this translation helpful? Give feedback.
Answered by
hayes
Apr 10, 2022
Replies: 1 comment 1 reply
-
This doesn't sound specific to Pothos. It's possible that what ever server you are using is doing treeshaking on the imported files and not including the console.logs |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lewebsimple
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't sound specific to Pothos. It's possible that what ever server you are using is doing treeshaking on the imported files and not including the console.logs