/* Import modules. */
import { GraphQLObjectType } from 'graphql'

/* Import mutations. */
import addAffiliate from './mutations/addAffiliate.js'
import createOrder from './mutations/createOrder.js'
import createSession from './mutations/createSession.js'
import playGame from './mutations/playGame.js'

/* Set name. */
const name = 'Mutation'

/* Set (Mutation) fields. */
const fields = {
    addAffiliate,
    createOrder,
    createSession,
    playGame,
}

/* Set (Mutation) description. */
const description = `
Make authenticated requests to the entire suite of Nexa Exchange on-chain services.
`.trim()

/**
 * Mutation
 *
 * Make authenticated requests to Exchange services.
 */
export default new GraphQLObjectType({
    name,
    fields,
    description,
})
