Closed dlarr closed 3 years ago
waw it's kinda dead around here :(
we're not dead, but slow :)
https://github.com/kamilkisiela/apollo-angular/pull/1642/commits/f6902f24082f4100baedafcdea01e703c7025522
it's totally fine and correct when it comes to graphql spec. We introduced operationPrinter
option to write your own printing logic or even use stripIgnoredCharacters
of graphql.
Describe the bug
I am try to migrate from v1.10.0 to v2.2.0 I used the ng update apollo-angular schematics and things went pretty well.
Problem is with some request the resulting query within request payload removed sont comma that are mandatory for execution
Here is the request written in my code (some filters and field are parameters here) The interesting line is dateHistogram(period: "7d", metricAggregation: "max", timestampField: "timestamp") {
The problem is that when the HTTP request is actually posted the commas are removed and replaced by a carriage return
In a copy/paste here is the result:
See how commas have been removed ?
To Reproduce Steps to reproduce the behavior: I don't know
Expected behavior
These commas need to be kept
Environment:
@apollo/client
: ^3.0.0apollo-angular
: ^2.2.0graphql
: ^15.0.0@angular/core
: ^10.0.6@angular/cli
: ^10.0.4typescript
: 3.9.7Additional context
The problem may come from Apollo/Client but I can't find an answer talking about these commas replacement