diff --git a/src/schema/common/date.ts b/src/schema/common/date.ts index b526b78..146643f 100644 --- a/src/schema/common/date.ts +++ b/src/schema/common/date.ts @@ -1,7 +1,5 @@ import { gql } from 'apollo-server-core'; -import { GraphQLDateTime } from 'graphql-iso-date'; export const dateSchema = gql` scalar Date `; -export const dateResolver = { Date: GraphQLDateTime }; diff --git a/src/schema/utils/polaris-schema-creator.ts b/src/schema/utils/polaris-schema-creator.ts index 302ecd6..5fc763f 100644 --- a/src/schema/utils/polaris-schema-creator.ts +++ b/src/schema/utils/polaris-schema-creator.ts @@ -2,7 +2,7 @@ import { buildSchema, GraphQLSchema } from 'graphql'; import { IExecutableSchemaDefinition, makeExecutableSchema } from 'graphql-tools'; import { mergeResolvers, mergeTypes } from 'merge-graphql-schemas'; import { CommonEntityInterface } from '../common/common-entity-interface'; -import { dateResolver, dateSchema } from '../common/date'; +import { dateSchema } from '../common/date'; export function makeExecutablePolarisSchema({ typeDefs, @@ -24,7 +24,7 @@ export function makeExecutablePolarisSchema({ ); return makeExecutableSchema({ typeDefs: typeDefsWithCommonEntity, - resolvers: mergeResolvers([dateResolver, ...(resolvers as [])]), // resolvers, + resolvers: mergeResolvers(resolvers as []), connectors, logger, allowUndefinedInResolve,