initial commit

This commit is contained in:
Wyatt Johnson
2018-06-16 17:20:51 -06:00
commit 02e1236792
39 changed files with 5258 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
import query from './query';
export default {
Query: query,
};
+12
View File
@@ -0,0 +1,12 @@
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);
},
};