roschaefer 034a353367 Hard-code graphql schema
Apparently, `neo4j-graphql-js` *replaces* the schema partly. When we use
join models like `EMOTED`, `neo4j-graphql-js` puts in a join model with
the two names of the connected types.
2019-11-15 11:04:07 +01:00

28 lines
529 B
JavaScript

import { makeAugmentedSchema } from 'neo4j-graphql-js'
import typeDefs from './types'
import resolvers from './resolvers'
export default makeAugmentedSchema({
typeDefs,
resolvers,
config: {
query: {
exclude: [
'Badge',
'Embed',
'InvitationCode',
'EmailAddress',
'Notfication',
'Statistics',
'LoggedInUser',
'Location',
'SocialMedia',
'NOTIFIED',
'REPORTED',
'Donations',
],
},
mutation: false,
},
})