added tenant + graph support

This commit is contained in:
Wyatt Johnson
2018-06-16 17:21:04 -06:00
parent 02e1236792
commit 4318e1ddbe
35 changed files with 1024 additions and 269 deletions
-5
View File
@@ -1,5 +0,0 @@
import query from './query';
export default {
Query: query,
};
-12
View File
@@ -1,12 +0,0 @@
import Context from 'talk-server/graph/context';
import { Asset } from 'talk-server/models/asset';
export default {
asset: async (
_: any,
{ id, url }: { id?: string; url: string },
ctx: Context
): Promise<Asset> => {
return ctx.loaders.Asset.asset.load(id);
},
};