Added designers

This commit is contained in:
Niklas Fondberg
2021-04-08 23:11:24 +02:00
parent 2b57afbc4a
commit 3c648cee29
18 changed files with 366 additions and 151 deletions
+5
View File
@@ -8,13 +8,18 @@ import { typeDefs } from './schema';
import resolvers from './resolvers';
import { OrderAPI } from './datasources/order-api';
import { ProductAPI } from './datasources/product-api';
import { DesignerAPI } from './datasources/designer-api';
const knexConfig = knexStringcase(dbConfig);
// TODO: Try with this to see if - tables don't get converted
// delete knexConfig.appWrapIdentifier;
// set up any dataSources our resolvers need
const dataSources = () => ({
orderApi: new OrderAPI(knexConfig),
productApi: new ProductAPI(knexConfig),
designerApi: new DesignerAPI(knexConfig),
});
const context = async ({ req }) => {