mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Merge client into next (#1709)
* Merge client * Add linting script * Rename serve to start:development * Move error harmonization and handling to network layer * Show Comment Stream * Added initial test
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import DataLoader from "dataloader";
|
||||
import Context from "talk-server/graph/tenant/context";
|
||||
import {
|
||||
Comment,
|
||||
ConnectionInput,
|
||||
retrieveAssetConnection,
|
||||
retrieveMany,
|
||||
|
||||
@@ -5,4 +5,6 @@ import { ConnectionInput } from "talk-server/models/comment";
|
||||
export default {
|
||||
comments: async (asset: Asset, input: ConnectionInput, ctx: Context) =>
|
||||
ctx.loaders.Comments.forAsset(asset.id, input),
|
||||
// TODO: implement this.
|
||||
isClosed: () => false,
|
||||
};
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
import TenantContext from "talk-server/graph/tenant/context";
|
||||
import { Asset } from "talk-server/models/asset";
|
||||
|
||||
export default {
|
||||
asset: async (
|
||||
source: void,
|
||||
{ id, url }: { id: string; url: string },
|
||||
{ id }: { id: string; url: string },
|
||||
ctx: TenantContext
|
||||
) => ctx.loaders.Assets.asset.load(id),
|
||||
settings: async (parent: any, args: any, ctx: TenantContext) => ctx.tenant,
|
||||
|
||||
@@ -242,12 +242,12 @@ type CommentEdge {
|
||||
"""
|
||||
node is the Comment for this edge.
|
||||
"""
|
||||
node: Comment
|
||||
node: Comment!
|
||||
|
||||
"""
|
||||
|
||||
"""
|
||||
cursor: Cursor
|
||||
cursor: Cursor!
|
||||
}
|
||||
|
||||
"""
|
||||
@@ -332,12 +332,12 @@ type AssetEdge {
|
||||
"""
|
||||
node is the Asset for this edge.
|
||||
"""
|
||||
node: Asset
|
||||
node: Asset!
|
||||
|
||||
"""
|
||||
|
||||
"""
|
||||
cursor: Cursor
|
||||
cursor: Cursor!
|
||||
}
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user