FppServer
Usage
import { FppServer } from 'financialcpp'
const server = new FppServer({})
server.listen().then( ({graphql}) => {
console.log(`🚀 Graphql server ready at ${graphql.url}`)
}
new FppServer(options)
const server = new FppServer({
apollo: {},
ui: {},
})
Properties
apollo
Object
or false
to disable.
Apollo Server is used internally. See docs for all the options available.
ui
Object
or false
to disable.
ui.nuxt
Function
or Object
If you know nuxt, you can modify the nuxt.config.js
file. Pass in a function that takes the internal nuxt.config
as the first parameter and return the modified object.
new FppServer({
ui: {
nuxt: (config) => {
// add your own stuff, or modify the defaults
return config
}
}
})