We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
schema
1 parent ebe1822 commit c3daa95Copy full SHA for c3daa95
module/src/module.ts
@@ -192,7 +192,11 @@ export default defineNuxtModule<GqlConfig>({
192
// })
193
}
194
195
- const allowDocument = (f: string) => !!statSync(srcResolver.resolve(f)).size
+ const allowDocument = (f: string) => {
196
+ const isSchema = f.match(/([^/]+)\.(gql|graphql)$/)?.[0]?.toLowerCase().includes('schema')
197
+
198
+ return !isSchema && !!statSync(srcResolver.resolve(f)).size
199
+ }
200
201
if (config.watch) {
202
nuxt.hook('builder:watch', async (event, path) => {
0 commit comments