Issues with stream and defer in v 13
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Product
Hot Chocolate
Describe the bug
I have migrated to v13 and i am using react relay for the client and sending this request :
{"query":"query TodosQuery(\n $before: String\n $after: String\n $first: Int\n $last: Int\n) {\n ...TodosFragment\n}\n\nfragment TodosFragment on Query {\n todos(before: $before, after: $after, first: $first, last: $last) {\n ... @defer(label: \"TodosFragment$defer$List__todos$pageInfo\") {\n pageInfo {\n hasNextPage\n endCursor\n hasPreviousPage\n startCursor\n }\n }\n edges @stream(label: \"TodosFragment$stream$List__todos\", initial_count: 2) {\n node {\n title\n body\n id\n isCompleted\n __typename\n }\n cursor\n }\n }\n}\n","variables":{"before":null,"after":null,"first":2,"last":null}}
but the server response is like this :
{"errors":[{"message":"The specified operation kind is not allowed."}]}
on the playground im not getting this error btw.
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3" />
<PackageReference Include="HotChocolate.AspNetCore" Version="13.0.2" />
<PackageReference Include="HotChocolate.AspNetCore.Authorization" Version="13.0.2" />
<PackageReference Include="HotChocolate.Subscriptions.Redis" Version="13.0.2" />
<PackageReference Include="HotChocolate.Data.MongoDb" Version="13.0.2" />
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.10" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.24.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.24.0" />
Steps to reproduce
Relevant log output
No response
Additional Context?
No response
Version
13
Issue Analytics
- State:
- Created 7 months ago
- Comments:11 (5 by maintainers)
Top GitHub Comments
If you specify an accept other than
Accept: */*
you need to specify all the formats that you want to receive.Accept: application/json
andAccept: multipart/mixed;charset=utf-8
for instance.Thanks now its working