mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
[next] MongoDB Indexes (#2142)
* feat: added mongo indexing support * fix: fixed typescript issue * chore: better types * fix: revert debug stuff * fix: addressed ts error * feat: added config option to disable auto-indexing * chore: reordered imports * refactor: cleaned up some filepaths
This commit is contained in:
@@ -2,7 +2,7 @@ import { GraphQLScalarType } from "graphql";
|
||||
import { Kind } from "graphql/language";
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
import { Cursor } from "talk-server/models/connection";
|
||||
import { Cursor } from "talk-server/models/helpers/connection";
|
||||
|
||||
function parseIntegerCursor(value: string): number | null {
|
||||
try {
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
retrieveCommentUserConnection,
|
||||
retrieveManyComments,
|
||||
} from "talk-server/models/comment";
|
||||
import { Connection } from "talk-server/models/connection";
|
||||
import { Connection } from "talk-server/models/helpers/connection";
|
||||
import { retrieveSharedModerationQueueQueuesCounts } from "talk-server/models/story/counts/shared";
|
||||
|
||||
import { SingletonResolver } from "./util";
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
import { decodeActionCounts } from "talk-server/models/action/comment";
|
||||
import * as comment from "talk-server/models/comment";
|
||||
import { getLatestRevision } from "talk-server/models/comment";
|
||||
import { createConnection } from "talk-server/models/connection";
|
||||
import { createConnection } from "talk-server/models/helpers/connection";
|
||||
|
||||
import TenantContext from "../context";
|
||||
import { getURLWithCommentID } from "./util";
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
RejectCommentPayloadToModerationQueuesResolver,
|
||||
} from "talk-server/graph/tenant/schema/__generated__/types";
|
||||
import { CommentConnectionInput } from "talk-server/models/comment";
|
||||
import { FilterQuery } from "talk-server/models/query";
|
||||
import { FilterQuery } from "talk-server/models/helpers/query";
|
||||
import {
|
||||
CommentModerationCountsPerQueue,
|
||||
Story,
|
||||
|
||||
@@ -1547,36 +1547,6 @@ type Story {
|
||||
createdAt: Time!
|
||||
}
|
||||
|
||||
"""
|
||||
StoryEdge represents a unique Story in a StoryConnection.
|
||||
"""
|
||||
type StoryEdge {
|
||||
"""
|
||||
node is the Story for this edge.
|
||||
"""
|
||||
node: Story!
|
||||
|
||||
"""
|
||||
|
||||
"""
|
||||
cursor: Cursor!
|
||||
}
|
||||
|
||||
"""
|
||||
StoriesConnection represents a subset of a Story list.
|
||||
"""
|
||||
type StoriesConnection {
|
||||
"""
|
||||
edges are a subset of StoryEdge's.
|
||||
"""
|
||||
edges: [StoryEdge!]!
|
||||
|
||||
"""
|
||||
pageInfo is
|
||||
"""
|
||||
pageInfo: PageInfo!
|
||||
}
|
||||
|
||||
################################################################################
|
||||
## CommentsFilterInput
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user