P5 7619 refactor products to return list (#11)
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
import { IResolverObject } from 'graphql-tools';
|
||||
import { DesignerAPI } from '../datasources/designer-api';
|
||||
import { OrderAPI } from '../datasources/order-api';
|
||||
import { FilterInput } from '../types/types';
|
||||
import { GeneralInput } from '../types/types';
|
||||
|
||||
const Designer: IResolverObject = {
|
||||
async orderRows({ id }, args: FilterInput, { dataSources }) {
|
||||
return (<OrderAPI>dataSources.orderApi).getOrderRowsByDesignerId(
|
||||
id,
|
||||
args.filter,
|
||||
);
|
||||
async orderRows({ id }, input: GeneralInput, { dataSources }) {
|
||||
return (<OrderAPI>dataSources.orderApi).getOrderRowsByDesignerId(id, input);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user