Skip to content

Commit

Permalink
remove unused code for ID aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
MacondoExpress committed Jan 13, 2025
1 parent b0d8882 commit f8baf03
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 f8baf03

Please sign in to comment.