@@ -53,6 +53,7 @@ const makeDefaultNetlifyGraphConfig = ({
53
53
...netlifyGraphPath ,
54
54
NetlifyGraph . defaultGraphQLSchemaFilename ,
55
55
] ;
56
+
56
57
const netlifyGraphRequirePath = [ `./netlifyGraph` ] ;
57
58
const moduleType = baseConfig . moduleType || 'esm' ;
58
59
@@ -253,6 +254,12 @@ const getNetlifyGraphConfig = async ({ config, options, site }) => {
253
254
path . sep
254
255
) ) ||
255
256
defaultConfig . netlifyGraphTypeDefinitionsFilename ;
257
+
258
+ const graphQLOperationsSourceDirectory =
259
+ ( userSpecifiedConfig . graphQLOperationsSourceDirectory &&
260
+ userSpecifiedConfig . graphQLOperationsSourceDirectory . split ( path . sep ) ) ||
261
+ defaultFrameworkConfig . graphQLOperationsSourceDirectory
262
+
256
263
const graphQLOperationsSourceFilename =
257
264
( userSpecifiedConfig . graphQLOperationsSourceFilename &&
258
265
userSpecifiedConfig . graphQLOperationsSourceFilename . split ( path . sep ) ) ||
@@ -297,6 +304,7 @@ const getNetlifyGraphConfig = async ({ config, options, site }) => {
297
304
netlifyGraphPath,
298
305
netlifyGraphImplementationFilename,
299
306
netlifyGraphTypeDefinitionsFilename,
307
+ graphQLOperationsSourceDirectory,
300
308
graphQLOperationsSourceFilename,
301
309
graphQLSchemaFilename,
302
310
graphQLConfigJsonFilename,
0 commit comments