mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
import { makeAugmentedSchema } from 'neo4j-graphql-js'
|
|
import CONFIG from './../config'
|
|
import applyScalars from './../bootstrap/scalars'
|
|
import applyDirectives from './../bootstrap/directives'
|
|
import typeDefs from './types'
|
|
import resolvers from './resolvers'
|
|
|
|
export default applyScalars(
|
|
applyDirectives(
|
|
makeAugmentedSchema({
|
|
typeDefs,
|
|
resolvers,
|
|
config: {
|
|
query: {
|
|
exclude: [
|
|
'Badge',
|
|
'Embed',
|
|
'InvitationCode',
|
|
'EmailAddress',
|
|
'Notfication',
|
|
'Statistics',
|
|
'LoggedInUser',
|
|
'Location',
|
|
'SocialMedia',
|
|
'NOTIFIED',
|
|
],
|
|
// add 'User' here as soon as possible
|
|
},
|
|
mutation: {
|
|
exclude: [
|
|
'Badge',
|
|
'Embed',
|
|
'InvitationCode',
|
|
'EmailAddress',
|
|
'Notfication',
|
|
'Post',
|
|
'Comment',
|
|
'Report',
|
|
'Statistics',
|
|
'LoggedInUser',
|
|
'Location',
|
|
'SocialMedia',
|
|
'User',
|
|
'EMOTED',
|
|
'NOTIFIED',
|
|
],
|
|
// add 'User' here as soon as possible
|
|
},
|
|
debug: !!CONFIG.DEBUG,
|
|
},
|
|
}),
|
|
),
|
|
)
|