Skip to content

Commit

Permalink
Merge pull request #5939 from MacondoExpress/clean-up-7-aggregation
Browse files Browse the repository at this point in the history
Remove unused code on 7.x (ID aggregations)
  • Loading branch information
MacondoExpress authored Jan 15, 2025
2 parents 0fc0ab3 + f8baf03 commit de25d9c
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import type { ObjectTypeComposer, SchemaComposer } from "graphql-compose";
import type { Subgraph } from "../../classes/Subgraph";
import { idResolver } from "../resolvers/field/id";
import { numericalResolver } from "../resolvers/field/numerical";

export class AggregationTypesMapper {
Expand Down Expand Up @@ -50,12 +49,6 @@ export class AggregationTypesMapper {
resolve: numericalResolver,
args: {},
};
// TODO: REMOVE ID FIELD ON 7.x
const composeId = {
type: "ID",
resolve: idResolver,
args: {},
};

const directives: string[] = this.subgraph ? [this.subgraph.getFullyQualifiedDirectiveName("shareable")] : [];

Expand All @@ -64,15 +57,6 @@ export class AggregationTypesMapper {
fields?: Record<string, any>;
directives?: string[];
}> = [
// TODO: REMOVE ID FIELD ON 7.x
{
name: "ID",
fields: {
shortest: composeId,
longest: composeId,
},
directives,
},
{
name: "String",
fields: {
Expand Down

0 comments on commit de25d9c

Please sign in to comment.