Add embryo to products

This commit is contained in:
Niklas Fondberg
2021-04-06 15:49:41 +02:00
parent 813f4c8e47
commit 949c641410
10 changed files with 110 additions and 4 deletions
+3 -1
View File
@@ -7,13 +7,15 @@ import { dbConfig } from './config';
import { typeDefs } from './schema';
import resolvers from './resolvers';
import { OrderAPI } from './datasources/order';
import { OrderAPI } from './datasources/order-api';
import { ProductAPI } from './datasources/product-api';
const knexConfig = knexStringcase(dbConfig);
// set up any dataSources our resolvers need
const dataSources = () => ({
orderApi: new OrderAPI(knexConfig),
productApi: new ProductAPI(knexConfig),
});
const context = async ({ req }) => {