24 questions
1
vote
0
answers
44
views
How to add Authorization: Bearer <token> header to Strawberry Shake client after login in Blazor Server?
I'm using Blazor Server with Strawberry Shake 15.1.10.0 to consume a GraphQL API.
Here's the flow:
User logs in via a regular API call (SignInAsync(username, password))
The API returns a JWT token (...
0
votes
0
answers
116
views
How to Dynamically Configure HttpClient Headers (BaseUrl, Endpoint, API Key) for StrawberryShake GraphQL Client at Runtime?
builder.Services.Configure<PIMCoreSettings>(builder.Configuration.GetSection("PIMCoreSettings"));
builder.Services.AddHttpClient(
SupplierEngine.PIMCore.GraphQLClient.ServerGraphQL....
0
votes
1
answer
183
views
The maximum allowed items per page were exceeded Cursor based pagination Graphql error
Here i am using Cursor based pagination for graphql with .NET(Strawberryshake and Hotchocolate) and it gives me this below error. Can anyone please help me to find out the solution for how can i ...
1
vote
1
answer
439
views
How to utilize StrawberryShake tools for schema located in github
I am trying to add strawberry shake to a project for my first time using GraphQL in .NET and I am struggling to get the tooling to work to build the client for strawberry shake to work. The code I am ...
0
votes
1
answer
268
views
How do you get StrawberryShake to treat ID as a number?
I am using the startgg GraphQL schema which has an id field for some objects, and StrawberryShake tries to parse it as a String. The schema has this
type Event {
id: ID
...
}
The specification ...
2
votes
1
answer
979
views
C# GraphQL StrawberryShake Init problems
I am trying to initialize a new graphQL client in Visual Studio 2022 using the StrawberryShake.Tools command:
dotnet graphql init {Endpoint}
However it always fails with an error
Error HTTP_ERROR: ...
1
vote
3
answers
751
views
Unable to compile 2 clients with Chillicream's StrawberryShake
I use StrawberryShake 13.9 in ASP.NET Core 8 / C# and want to consume 2 graphql API from 2 different services which I created with Chillicream's excellent HotChocolate workflow.
At client side I have ...
1
vote
1
answer
598
views
Cannot add token to outgoing request using Strawberry Shake Graph QL client
My Blazor .NET 8 WASM app uses the StrawberryShake GraphQL client to connect to a HotChocolate GraphQL endpoint in an ASP NET Web API project. I am following the official docs but I'm having trouble ...
0
votes
1
answer
1k
views
StrawberryShake: Generating classes using a client that needs token authentication
I am following the StrawberryShake documentation to create a console application to download data from a GraqhQL API. The difference in my case is that my server has a URL and one does not get access ...
0
votes
0
answers
101
views
'ServiceCollection' does not contain a definition for 'AddStrawberryShakeClient'
Using a console application, I want to download data from a GraphQL API on my local machine.
I have added the following NuGet packages to my project in Visual Studio:
StrawberryShake (13.8.1)
...
1
vote
0
answers
80
views
Strawberry Shake Graphql and WinForms c#
I created one server with HotChocolate. Now, I want to create Winforms application, but I don't know how to implement GraphQL in winforms.
Do anybody know how to use Strawberry Shake GraphQL in ...
0
votes
0
answers
187
views
Strawberry Shake error using gzip compression
I am following the official Strawberry Shake guide: https://chillicream.com/docs/strawberryshake/v13/get-started/console
Specifically Step 4: Add a GraphQL client to your project using the CLI tools
I ...
3
votes
0
answers
1k
views
StrawberryShake - Disable regenerating client code at each build
I have a tyical .net 7 client application with StrawberryShake v.12.20.
When I compile and test the app locally, everything works fine. But when I upload it to our CI/CD pipeline (using Autobahn and ...
3
votes
6
answers
4k
views
C# .Net build failure due to strawberryshake error - Method not found: 'Void StrawberryShake.CodeGeneration.CSharp.CSharpGeneratorSettings
I have a .net 6 project which uses strawberryshake 12.18.0 grahpql client. It build in my local environment. But when it runs in Azure pipeline it fails to build the project due to below error.
Error ...
10
votes
2
answers
3k
views
c# .net build error due to strawberry shake graphql client error - "access to the path 'obj\\berry' is denied"
Recently I updated my visual studio to the latest version of 17.5.1 and my target sdk version is NET 7.0 SDK (v7.0.102). Now I have a build error stating that "access to the path 'obj\berry' is ...
0
votes
1
answer
2k
views
GraphQL Strawberry Shake client execution strategy
I built a HotChocolate service and a strawberry client according to the documentation on the chillcream website. Here is my client code:
namespace strawberry_shake_graphql_client
{
internal class ...
1
vote
1
answer
843
views
Detect and handle when StrawberryShake Subscription connection wasn't successful
I have two asp.net applications running locally in development mode. One is running HotChocolate as the GraphQL server and working well. The second application is attempting to run StrawberryShake ...
1
vote
3
answers
2k
views
Getting ambiguity issues (CS0121) with auto generated code from StrawberryShake (GraphQL)
I'm getting ambiguity issues when using the auto generated code from the StrawberryShake.CodeGeneration.CSharp.Analyzers. First time using this package so I might have done something silly. The error ...
2
votes
1
answer
2k
views
Strawberry Shake Code Generation cannot resolve type reference 'None:Any'
I try to use Strawberry Shake to generate Code from Querys in my Client.
I created a Demo Project and do all the Steps in the Documentation
I can succesfull init it with this command dotnet graphql ...
5
votes
2
answers
5k
views
No client is generated with StrawberryShake
I am using Strawberry Shake
The schema seems to be generated just fine
When i build i dont see any generated folder . Seems there is no client generated .
I am doing something wrong here ?
1
vote
0
answers
2k
views
How to generate C# scripts from GraphQL properly with Strawberry Shake in a Blazor Project
I am using a .NET Core 5 & Blazor together. I have also created a nice simple GraphQL API. But to start I just followed the tutorial Getting Started With Strawberry Shake and Blazor. By the way, ...
2
votes
1
answer
812
views
Nuget package is not compatible, but in the supported-list (StrawberryShake.Tools)
I got this message after creating a new .NET 5-project (in VS2019) and trying to install nuget-package StrawberryShake.Tools. This seems a bit strange, since it says both that it is and it isnt ...
2
votes
1
answer
1k
views
Strawberry Shake graphql init - use ssl certificate
I am just starting out using Strawberry Shake to generate a client for a GraphQL API.
I have run through the Getting Started, but the API I am connecting to requires SSL Cert authentication.
I can ...
1
vote
1
answer
2k
views
HotChocolate mutation input type uses int instead of ID
I am new to HotChocolate and GraphQL as a whole and am trying to grasp on enabling Nodes and/or Relay support for my GraphQL API. Currently using HotChocolate v12.
Context
I am trying to create a ...