import { ExperiencesByCityResolvers } from '../generated/resolvers' ; import { TypeMap } from './types/TypeMap' ; export interface ExperiencesByCityParent { id : string ; } export const ExperiencesByCity = { experiences : async ( parent , _args , ctx ) => { return ctx . db . experiences ( { where : { location : { id_gt : '0' , neighbourHood : { city : { id : parent . id } } } } } ) ; } , city : ( parent , _args , ctx ) => ctx . db . city ( { id : parent . id } ) } ;