Server retrieve by single comment

This commit is contained in:
Belén Curcio
2018-07-25 12:15:03 -03:00
parent b421ea97b3
commit 40ab723cf1
@@ -6,5 +6,10 @@ export default {
{ id }: { id: string; url: string },
ctx: TenantContext
) => ctx.loaders.Assets.asset.load(id),
comment: async (
source: void,
{ id }: { id: string; url: string },
ctx: TenantContext
) => ctx.loaders.Comments.comment.load(id),
settings: async (parent: any, args: any, ctx: TenantContext) => ctx.tenant,
};