mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
28 lines
660 B
JavaScript
28 lines
660 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
|
|
}
|
|
}
|