Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(backend): 🍰 Move db/graphql Folder Content To graphql Folder #5661

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions backend/src/middleware/slugifyMiddleware.spec.js
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion backend/src/schema/resolvers/groups.spec.js
Original file line number Diff line number Diff line change
@@ -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'
8 changes: 4 additions & 4 deletions backend/src/schema/resolvers/postsInGroups.spec.js
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion backend/src/schema/resolvers/user_management.spec.js
Original file line number Diff line number Diff line change
@@ -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'