Skip to content

Commit

Permalink
chore: adds dirname to loadFilesSync
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoformiga committed Sep 12, 2024
1 parent 1cb621b commit 9d0062d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/typeDefs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { print } from 'graphql'
import { loadFilesSync } from '@graphql-tools/load-files'

// Empty string ('') is interpreted as the current dir. Referencing it as './' won't work.
export const typeDefs = loadFilesSync('', { extensions: ['.graphql'] })
export const typeDefs = loadFilesSync(__dirname, { extensions: ['.graphql'] })
.map(print)
.join('\n')

0 comments on commit 9d0062d

Please sign in to comment.