@graphql-tools/git-loader
can't find definitions if they are in the upper directory
#5101
Closed
4 tasks
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
@graphql-tools/git-loader
can't find graphql definitions if they are in the upper directory.This might be because
git ls-tree
can't search upper directory by default.To Reproduce
Steps to reproduce the behavior:
packages/graphql-loader
dir.packages/graphql-loader/index.js
. The code is like below.Error: Unable to find any GraphQL type definitions for the following pointers:
.cwd
option to loadSchema, it will fail.Expected behavior
Can load graphql definitions.
Environment:
@graphql-tools/git-loader
: 7.2.20@graphql-tools/load
: 7.8.12Additional context
The text was updated successfully, but these errors were encountered: