import { ObjectType } from './ObjectType' ; import { Field } from '../reference/Field' ; import { TypeResolvingContext } from '../type-expression/types' ; export class SubscriptionType extends ObjectType { protected buildFieldConfig ( context , field ) { const { resolve , ... rest } = super . buildFieldConfig ( context , field ) ; return { ... rest , subscribe : resolve , resolve : ( v ) => v } ; } }