Closed Xeviva closed 1 year ago
Can you attach a demo project here showing this issue?
From the error message it looks like the StrawberryShake.Server package is missing in your project.
I'm now running into what looks like an issue with the documents setting in .graphqlrc.json
If I set documents to "**/*.graphql",
I get: EXEC : error GQL: An item with the same key has already been added. Key: JSON
If I set documents to "./Documents/*.graphql",
and put queries in a Folder called Documents:
Warning MSB5029 The value "*\.cs" of the "Include" attribute in element
If I set documents to "GQLDocs/*.graphql"
and put docs in GQLDocs:
allows the project to build with no errors, but still no client generated, so I can't add the client to the DI, using builder.Services.AddXClient(), with XClient being the name, even with a using for the namespace value set in .graphqlrc.json
can you advise what should be set here as the default isn't working?
{ "schema": "schema.graphql", "documents": "GQLDocs/*.graphql", "extensions": { "strawberryShake": { "name": "XClient", "namespace": "XGQL", "url": "https://someserver.com/graphql", "records": { "inputs": false, "entities": false }, "transportProfiles": [ { "default": "Http", "subscription": "WebSocket" } ] } } }
Is there an existing issue for this?
Product
Strawberry Shake
Describe the bug
Following the get started guide (https://chillicream.com/docs/strawberryshake/v13/get-started/console) doesn't work.
I made a fresh solution, followed the guide but I get a build error. The code won't compile.
Steps to reproduce
Reproduction steps:
Expected: Code compiles
Actual: Build error:
error MSB4057: The target "GenerateGraphQLCode" does not exist in the project.
Relevant log output
Additional Context?
none
Version
13.0.5