-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
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
Importing .graphql files #3188
Comments
If you're only interested in the applications you should be able to provide custom webpack configuration - or rather extension of existing - using something like In case you want to put publishable libraries in the mix, this is pretty much not done yet by anyone. You could probably get to compile I opened feature request for this but was closed super fast. There is as well directly related request in |
I've tried |
I know its too late but you can add custom webpack to use
and use it in your project.json as a webpack config in options:
|
This worked for me but for some reason, it doesn't work with import syntax. I am forced to use require in node to get the typeDefs to not be undefined.
|
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Description
How can I important .graphql files in typescript in a nx monorepo
Motivation
Our NX backend is running on PrismaJS and we are currently migrating it to NX workspace, we work with a lot of graqhql files and can't import then in an NX workspace without the graphql webpack loader? Is there any workaround to import grahql files in typescript files?
Couldn't find anything about it on the internet or the docs
The text was updated successfully, but these errors were encountered: