-
Notifications
You must be signed in to change notification settings - Fork 153
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
[Feature Branch] Aggregation 6 #5945
base: dev
Are you sure you want to change the base?
Conversation
Top Level aggregations in connections
🦋 Changeset detectedLatest commit: 98bf3bc The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Nested aggregations 6
Deprecate field aggregate fields in favor of nested connection aggregate fields
Count aggregation
Fix performance in new aggregations
Performance Report
🟥 - Performance worsened (dbHits) Show Full Table
Old Schema Generation: 31.128s |
Co-authored-by: MacondoExpress <[email protected]>
Fix tests aggregation 6
Add distinct to new count in aggregation
…gregations Remove distinct from non-count aggregations
Fix 4615 with new aggregations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabled test
graphql/packages/graphql/tests/integration/filtering/typename-in.int.test.ts
Lines 150 to 166 in 98bf3bc
test.skip("aggregation", async () => { | |
const query = ` | |
{ | |
productionsAggregate(where: { OR: [ { typename: [${Movie.name}, ${Series.name}] } { typename: [${Cartoon.name}] } ] }) { | |
count | |
} | |
} | |
`; | |
const queryResult = await testHelper.executeGraphQL(query); | |
expect(queryResult.errors).toBeUndefined(); | |
expect(queryResult.data).toEqual({ | |
productionsAggregate: { | |
count: 3, | |
}, | |
}); | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabled test
graphql/packages/graphql/tests/integration/filtering/typename-in.int.test.ts
Lines 168 to 190 in 98bf3bc
test.skip("nested aggregation", async () => { | |
const query = ` | |
{ | |
${Actor.plural} { | |
actedInAggregate(where: { NOT: { typename: [${Movie.name}, ${Series.name}] } }) { | |
count | |
} | |
} | |
} | |
`; | |
const queryResult = await testHelper.executeGraphQL(query); | |
expect(queryResult.errors).toBeUndefined(); | |
expect(queryResult.data).toEqual({ | |
[Actor.plural]: expect.arrayContaining([ | |
{ | |
actedInAggregate: { | |
count: 1, | |
}, | |
}, | |
]), | |
}); | |
}); |
Description
This PR adds the new aggregate operations inside connections and deprecates the old aggregate operations