Move db/graphql folder content to graphql – backend

This commit is contained in:
Wolfgang Huß 2022-11-09 09:08:17 +01:00
parent 3e4e353878
commit e2f0e83c6f
9 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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'