Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean warnings from codegen the following anonymous operation is skipped: #5735

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integration-tests/tests/api/artifacts-cdn.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ function runArtifactsCDNTests(
'content-type': 'application/json',
},
body: JSON.stringify({
query: /* GraphQL */ `
query: `
{
__schema {
types {
Expand Down
132 changes: 52 additions & 80 deletions integration-tests/tests/api/target/usage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,57 +160,57 @@ test.concurrent(
});

const raw_document = `
query outfit {
recommendations(
input: {
strategies: [{ name: "asd" }]
articleId: "asd"
customerId: "asd"
phoenixEnabled: true
sessionId: "asd"
}
) {
... on RecommendationResponse {
frequentlyBoughtTogether {
recommendedProducts {
id
}
strategyMessage
query outfit {
recommendations(
input: {
strategies: [{ name: "asd" }]
articleId: "asd"
customerId: "asd"
phoenixEnabled: true
sessionId: "asd"
}
outfit {
strategyMessage
}
outfit {
recommendedProducts {
articleId
id
imageUrl
name
productUrl
rating
tCode
) {
... on RecommendationResponse {
frequentlyBoughtTogether {
recommendedProducts {
id
}
strategyMessage
}
strategyMessage
}
similar {
recommendedProducts {
articleId
id
imageUrl
name
productUrl
rating
tCode
outfit {
strategyMessage
}
outfit {
recommendedProducts {
articleId
id
imageUrl
name
productUrl
rating
tCode
}
strategyMessage
}
similar {
recommendedProducts {
articleId
id
imageUrl
name
productUrl
rating
tCode
}
strategyMessage
}
visualSearch {
strategyMessage
}
strategyMessage
}
visualSearch {
strategyMessage
}
}
}
}
`;
`;

const normalized_document = normalizeOperation({
document: parse(raw_document),
Expand Down Expand Up @@ -2567,11 +2567,7 @@ test.concurrent(

client.collectSubscriptionUsage({
args: {
document: parse(/* GraphQL */ `
subscription {
a
}
`),
document: parse('subscription { a }'),
schema,
contextValue: {
request,
Expand Down Expand Up @@ -2653,11 +2649,7 @@ test.concurrent(

client.collectUsage()(
{
document: parse(/* GraphQL */ `
query {
a
}
`),
document: parse('{ a }'),
schema,
contextValue: {
request,
Expand All @@ -2667,11 +2659,7 @@ test.concurrent(
);
client.collectUsage()(
{
document: parse(/* GraphQL */ `
query {
a
}
`),
document: parse('{ a }'),
schema,
contextValue: {
request,
Expand All @@ -2681,11 +2669,7 @@ test.concurrent(
);
client.collectUsage()(
{
document: parse(/* GraphQL */ `
query {
a
}
`),
document: parse('{ a }'),
schema,
contextValue: {
request,
Expand Down Expand Up @@ -2734,11 +2718,7 @@ test.concurrent(

client.collectSubscriptionUsage({
args: {
document: parse(/* GraphQL */ `
subscription {
a
}
`),
document: parse('subscription { a }'),
schema,
contextValue: {
request,
Expand All @@ -2747,11 +2727,7 @@ test.concurrent(
});
client.collectSubscriptionUsage({
args: {
document: parse(/* GraphQL */ `
subscription {
a
}
`),
document: parse('subscription { a }'),
schema,
contextValue: {
request,
Expand All @@ -2760,11 +2736,7 @@ test.concurrent(
});
client.collectSubscriptionUsage({
args: {
document: parse(/* GraphQL */ `
subscription {
a
}
`),
document: parse('subscription { a }'),
schema,
contextValue: {
request,
Expand Down
Loading