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 { createTestClient } from 'apollo-server-testing'
|
||||
import Factory, { cleanDatabase } from '../db/factories'
|
||||
import { createGroupMutation, updateGroupMutation } from '../db/graphql/groups'
|
||||
import { createPostMutation } from '../db/graphql/posts'
|
||||
import { signupVerificationMutation } from '../db/graphql/authentications'
|
||||
import { createGroupMutation, updateGroupMutation } from '../graphql/groups'
|
||||
import { createPostMutation } from '../graphql/posts'
|
||||
import { signupVerificationMutation } from '../graphql/authentications'
|
||||
|
||||
let authenticatedUser
|
||||
let variables
|
||||
|
||||
@ -8,7 +8,7 @@ import {
|
||||
changeGroupMemberRoleMutation,
|
||||
groupMembersQuery,
|
||||
groupQuery,
|
||||
} from '../../db/graphql/groups'
|
||||
} from '../../graphql/groups'
|
||||
import { getNeode, getDriver } from '../../db/neo4j'
|
||||
import createServer from '../../server'
|
||||
import CONFIG from '../../config'
|
||||
|
||||
@ -6,19 +6,19 @@ import {
|
||||
createGroupMutation,
|
||||
changeGroupMemberRoleMutation,
|
||||
leaveGroupMutation,
|
||||
} from '../../db/graphql/groups'
|
||||
} from '../../graphql/groups'
|
||||
import {
|
||||
createPostMutation,
|
||||
postQuery,
|
||||
filterPosts,
|
||||
profilePagePosts,
|
||||
searchPosts,
|
||||
} from '../../db/graphql/posts'
|
||||
import { createCommentMutation } from '../../db/graphql/comments'
|
||||
} from '../../graphql/posts'
|
||||
import { createCommentMutation } from '../../graphql/comments'
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
import { DESCRIPTION_WITHOUT_HTML_LENGTH_MIN } from '../../constants/groups'
|
||||
import CONFIG from '../../config'
|
||||
import { signupVerificationMutation } from '../../db/graphql/authentications'
|
||||
import { signupVerificationMutation } from '../../graphql/authentications'
|
||||
|
||||
CONFIG.CATEGORIES_ACTIVE = false
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ import jwt from 'jsonwebtoken'
|
||||
import CONFIG from './../../config'
|
||||
import Factory, { cleanDatabase } from '../../db/factories'
|
||||
import { gql } from '../../helpers/jest'
|
||||
import { loginMutation } from '../../db/graphql/userManagement'
|
||||
import { loginMutation } from '../../graphql/userManagement'
|
||||
import { createTestClient } from 'apollo-server-testing'
|
||||
import createServer, { context } from '../../server'
|
||||
import encode from '../../jwt/encode'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user