<@U7RHQHUDQ> I am more concerned about actually im...
# prisma-whats-new
k
@Futurekam I am more concerned about actually importing the files than merging them. Right now I'm seeing errors like this:
Cannot find module './user.graphql'
when I try to import them. In meteor, you can do
import UserSchema from './user.graphql'
, (I think this just imports the file contents as a string), then pass an array of imported schemas to makeExecutableQuery, but I don't want to use meteor.
f
Are you exporting the query as a template string?
The quick fix is to add .js to the end of the file name
That should fix the string issue the module importer may not understand .graphql file types and be automatically changing that to a string.
k
I'm looking for a way to do it without adding .js to the name, or exporting it as a template string. I want my graphql files to have a .graphql extension and contain only graphql code. I know this is possible, because it can be done in meteor.
f
👍🏼