* added functionality for new interior generation * update * fixes
15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
import { InteriorAPI } from '../datasources/interior-api';
|
|
import { InteriorsInput } from '../types/interior-types';
|
|
|
|
const Interior = {};
|
|
|
|
async function getInteriors(_, args: InteriorsInput, { dataSources }) {
|
|
return (<InteriorAPI>dataSources.interiorApi).getInteriors(args.input);
|
|
}
|
|
|
|
export const interiorTypeDefs = { Interior };
|
|
|
|
export const interiorsQueryTypeDefs = {
|
|
interiors: getInteriors,
|
|
};
|