mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
FYI: @Tirokk I think we'll never remove or add new badges through graphql. Instead, we will seed them manually with direct access to the database. Therefore I removed the respective mutations and also your tests regarding permissions.
41 lines
983 B
JavaScript
41 lines
983 B
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',
|
|
'InvitationCode',
|
|
'EmailAddress',
|
|
'Notfication',
|
|
'Statistics',
|
|
'LoggedInUser',
|
|
],
|
|
// add 'User' here as soon as possible
|
|
},
|
|
mutation: {
|
|
exclude: [
|
|
'Badge',
|
|
'InvitationCode',
|
|
'EmailAddress',
|
|
'Notfication',
|
|
'Statistics',
|
|
'LoggedInUser',
|
|
],
|
|
// add 'User' here as soon as possible
|
|
},
|
|
debug: CONFIG.DEBUG,
|
|
},
|
|
}),
|
|
),
|
|
)
|