mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
25 lines
652 B
JavaScript
25 lines
652 B
JavaScript
import fs from 'fs'
|
|
import path from 'path'
|
|
import userManagement from './resolvers/user_management.js'
|
|
import statistics from './resolvers/statistics.js'
|
|
import reports from './resolvers/reports.js'
|
|
import posts from './resolvers/posts.js'
|
|
import moderation from './resolvers/moderation.js'
|
|
|
|
export const typeDefs =
|
|
fs.readFileSync(process.env.GRAPHQL_SCHEMA || path.join(__dirname, 'schema.graphql'))
|
|
.toString('utf-8')
|
|
|
|
export const resolvers = {
|
|
Query: {
|
|
...statistics.Query,
|
|
...userManagement.Query
|
|
},
|
|
Mutation: {
|
|
...userManagement.Mutation,
|
|
...reports.Mutation,
|
|
...moderation.Mutation,
|
|
...posts.Mutation
|
|
}
|
|
}
|