Closed tobias-tengler closed 1 month ago
It seems all right 👌
No new problems were found according to the checks applied
💡 Qodana analysis was run in the pull request mode: only the changed files were checked ☁️ View the detailed Qodana report
Attention: Patch coverage is 70.00000%
with 3 lines
in your changes are missing coverage. Please review.
Project coverage is 71.87%. Comparing base (
0864cd5
) to head (658d0d7
).
Files | Patch % | Lines |
---|---|---|
...yShake/Client/src/Transport.Http/HttpConnection.cs | 70.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
When activating persisted queries with Strawberry Shake, it currently produces the following POST body:
The
"query": ""
part is problematic, since a Hot Chocolate server with theUseOnlyPersistedQueriesAllowed
middleware will now reject the request.I fixed this by setting the query on
OperationRequest
explicitly tonull
, so it will be correctly omitted when building the JSON payload. I also removed the unreferenced and unsupportedRequestStrategy.AutomaticPersistedQuery
to avoid confusion.