mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
added tenant + graph support
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import query from './query';
|
||||
|
||||
export default {
|
||||
Query: query,
|
||||
};
|
||||
@@ -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);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user