Intended outcome:
Operation parameter values remain in the parsed operation string.
fragment Articles on Query {
article: getArticles(
sort: [{ field: "created", direction: ASC }],
){
count
entities {
...Article
}
}
}
Parses to:
fragment Articles on Query { article: getArticles(sort: [{ field: "created", direction: ASC }],){ count entities { ...Article } } }
Note: sort.field === "created"
Actual outcome:
Operation parameters values are stripped from the operation string.
fragment Articles on Query { article: getArticles(sort: [{ field: \"\", direction: ASC }],){ count entities { ...Article } } }
Note: sort.field === ""
How to reproduce the issue:
Run client:extract on a fragment such as:
fragment Articles on Query {
article: getArticles(
sort: [{ field: "created", direction: ASC }],
){
count
entities {
entityId
}
}
}
Versions
2.6.0
Intended outcome:
Operation parameter values remain in the parsed operation string.
Parses to:
Note:
sort.field==="created"Actual outcome:
Operation parameters values are stripped from the operation string.
Note:
sort.field===""How to reproduce the issue:
Run
client:extracton a fragment such as:Versions
2.6.0