I can’t seem to get past this error, and any pointers would be much appreciated.
Type ‘(: {}, { id }: Partial, { dataSources }: DataSourceContext) => Promise<BuildingListModel[]>’ is not assignable to type ‘Resolver<ResolverTypeWrapper, {}, DataSourceContext, Partial>’.
Type '(: {}, { id }: Partial, { dataSources }: DataSourceContext) => Promise<BuildingListModel>’ is not assignable to type ‘ResolverFn<ResolverTypeWrapper, {}, DataSourceContext, Partial>’.
Type ‘Promise<BuildingListModel>’ is not assignable to type ‘ResolverTypeWrapper | Promise<ResolverTypeWrapper>’.
Type ‘Promise<BuildingListModel>’ is not assignable to type ‘Promise’.
Type ‘BuildingListModel’ has no properties in common with type ‘BuildingList’.ts(2322)
types.ts(366, 3): The expected type comes from property ‘buildinglist’ which is declared here on type ‘QueryResolvers<DataSourceContext, {}>’
(property) buildinglist?: Resolver<ResolverTypeWrapper, {}, DataSourceContext, Partial>