mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Move db/graphql folder content to graphql – backend
This commit is contained in:
parent
3e4e353878
commit
e2f0e83c6f
@ -2,9 +2,9 @@ import { getNeode, getDriver } from '../db/neo4j'
|
|||||||
import createServer from '../server'
|
import createServer from '../server'
|
||||||
import { createTestClient } from 'apollo-server-testing'
|
import { createTestClient } from 'apollo-server-testing'
|
||||||
import Factory, { cleanDatabase } from '../db/factories'
|
import Factory, { cleanDatabase } from '../db/factories'
|
||||||
import { createGroupMutation, updateGroupMutation } from '../db/graphql/groups'
|
import { createGroupMutation, updateGroupMutation } from '../graphql/groups'
|
||||||
import { createPostMutation } from '../db/graphql/posts'
|
import { createPostMutation } from '../graphql/posts'
|
||||||
import { signupVerificationMutation } from '../db/graphql/authentications'
|
import { signupVerificationMutation } from '../graphql/authentications'
|
||||||
|
|
||||||
let authenticatedUser
|
let authenticatedUser
|
||||||
let variables
|
let variables
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import {
|
|||||||
changeGroupMemberRoleMutation,
|
changeGroupMemberRoleMutation,
|
||||||
groupMembersQuery,
|
groupMembersQuery,
|
||||||
groupQuery,
|
groupQuery,
|
||||||
} from '../../db/graphql/groups'
|
} from '../../graphql/groups'
|
||||||
import { getNeode, getDriver } from '../../db/neo4j'
|
import { getNeode, getDriver } from '../../db/neo4j'
|
||||||
import createServer from '../../server'
|
import createServer from '../../server'
|
||||||
import CONFIG from '../../config'
|
import CONFIG from '../../config'
|
||||||
|
|||||||
@ -6,19 +6,19 @@ import {
|
|||||||
createGroupMutation,
|
createGroupMutation,
|
||||||
changeGroupMemberRoleMutation,
|
changeGroupMemberRoleMutation,
|
||||||
leaveGroupMutation,
|
leaveGroupMutation,
|
||||||
} from '../../db/graphql/groups'
|
} from '../../graphql/groups'
|
||||||
import {
|
import {
|
||||||
createPostMutation,
|
createPostMutation,
|
||||||
postQuery,
|
postQuery,
|
||||||
filterPosts,
|
filterPosts,
|
||||||
profilePagePosts,
|
profilePagePosts,
|
||||||
searchPosts,
|
searchPosts,
|
||||||
} from '../../db/graphql/posts'
|
} from '../../graphql/posts'
|
||||||
import { createCommentMutation } from '../../db/graphql/comments'
|
import { createCommentMutation } from '../../graphql/comments'
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import { DESCRIPTION_WITHOUT_HTML_LENGTH_MIN } from '../../constants/groups'
|
import { DESCRIPTION_WITHOUT_HTML_LENGTH_MIN } from '../../constants/groups'
|
||||||
import CONFIG from '../../config'
|
import CONFIG from '../../config'
|
||||||
import { signupVerificationMutation } from '../../db/graphql/authentications'
|
import { signupVerificationMutation } from '../../graphql/authentications'
|
||||||
|
|
||||||
CONFIG.CATEGORIES_ACTIVE = false
|
CONFIG.CATEGORIES_ACTIVE = false
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import jwt from 'jsonwebtoken'
|
|||||||
import CONFIG from './../../config'
|
import CONFIG from './../../config'
|
||||||
import Factory, { cleanDatabase } from '../../db/factories'
|
import Factory, { cleanDatabase } from '../../db/factories'
|
||||||
import { gql } from '../../helpers/jest'
|
import { gql } from '../../helpers/jest'
|
||||||
import { loginMutation } from '../../db/graphql/userManagement'
|
import { loginMutation } from '../../graphql/userManagement'
|
||||||
import { createTestClient } from 'apollo-server-testing'
|
import { createTestClient } from 'apollo-server-testing'
|
||||||
import createServer, { context } from '../../server'
|
import createServer, { context } from '../../server'
|
||||||
import encode from '../../jwt/encode'
|
import encode from '../../jwt/encode'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user