Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StrawberryShake] Add support for graphql documents to be globbed from a different directory #7869

Closed
wants to merge 4 commits into from

Conversation

repne
Copy link
Contributor

@repne repne commented Dec 25, 2024

Summary of the changes (Less than 80 chars)

I've reimplemented the globbing functionality of dotnet graphql generate command to use Microsoft.Extensions.FileSystemGlobbing. This will allow patterns from the documents node of the .graphqlrc.json file to be retrieved from different directories.

Today this is not possible:

  • ./ProjectA/.graphqlrc.json
  • ./ProjectB/query.graphql

With a documents node in the .graphqlrc.json of ../ProjectB/**.graphql

This will allow clients and operations to be in different locations, and to share the operation files between different clients.

@repne repne closed this Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants