diff --git a/backend/src/db/graphql/authentications.js b/backend/src/graphql/authentications.js similarity index 100% rename from backend/src/db/graphql/authentications.js rename to backend/src/graphql/authentications.js diff --git a/backend/src/db/graphql/comments.js b/backend/src/graphql/comments.js similarity index 100% rename from backend/src/db/graphql/comments.js rename to backend/src/graphql/comments.js diff --git a/backend/src/db/graphql/groups.js b/backend/src/graphql/groups.js similarity index 100% rename from backend/src/db/graphql/groups.js rename to backend/src/graphql/groups.js diff --git a/backend/src/db/graphql/posts.js b/backend/src/graphql/posts.js similarity index 100% rename from backend/src/db/graphql/posts.js rename to backend/src/graphql/posts.js diff --git a/backend/src/db/graphql/userManagement.js b/backend/src/graphql/userManagement.js similarity index 100% rename from backend/src/db/graphql/userManagement.js rename to backend/src/graphql/userManagement.js diff --git a/backend/src/middleware/slugifyMiddleware.spec.js b/backend/src/middleware/slugifyMiddleware.spec.js index 1fdfb7364..cfcd71ab7 100644 --- a/backend/src/middleware/slugifyMiddleware.spec.js +++ b/backend/src/middleware/slugifyMiddleware.spec.js @@ -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 diff --git a/backend/src/schema/resolvers/groups.spec.js b/backend/src/schema/resolvers/groups.spec.js index 3be8c0f90..e122eeb13 100644 --- a/backend/src/schema/resolvers/groups.spec.js +++ b/backend/src/schema/resolvers/groups.spec.js @@ -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' diff --git a/backend/src/schema/resolvers/postsInGroups.spec.js b/backend/src/schema/resolvers/postsInGroups.spec.js index 2c1e88b62..c55076a23 100644 --- a/backend/src/schema/resolvers/postsInGroups.spec.js +++ b/backend/src/schema/resolvers/postsInGroups.spec.js @@ -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 diff --git a/backend/src/schema/resolvers/user_management.spec.js b/backend/src/schema/resolvers/user_management.spec.js index 50e6e84bf..66896f485 100644 --- a/backend/src/schema/resolvers/user_management.spec.js +++ b/backend/src/schema/resolvers/user_management.spec.js @@ -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'