ChilliCream / ChilliCream/graphql-platform

Strawberry Shake tries to build *.graphql files that have been excluded from the project

Open
#6,949 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🌶️ strawberry shake
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

Product

Strawberry Shake

Version

13.8.1

Link to minimal reproduction

https://github.com/SvdSinner/StrawberryShakeIssueReproduction

Steps to reproduce
  1. Download code from github
  2. Observe that file ShouldNotGenerateExcluded.graphql is excluded from project ReproClient
  3. Build the solution.
  4. Observe that the generated code includes code for the excluded file
What is expected?

*.graphql files that are explicitly excluded from the project should not be used by the client generator

What is actually happening?

All *.graphql files in the project folder are used, even though excluded from the project.

Relevant log output

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked minimal reproduction and inspect the ReproClient project, especially the exclusion of ShouldNotGenerateExcluded.graphql. Build the solution to confirm that generated code still includes the excluded file. Done means explicitly excluded *.graphql files are omitted from Strawberry Shake client generation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, graphql
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.