feat: introduce reconnect feature for connections
This commit is contained in:
@@ -4,6 +4,12 @@ import graphQLSchema from '../graphql/graphql-schema'
|
||||
const graphQLInstance = graphqlHTTP({
|
||||
schema: graphQLSchema,
|
||||
graphiql: true,
|
||||
customFormatErrorFn: (error) => ({
|
||||
message: error.message,
|
||||
locations: error.locations,
|
||||
stack: error.stack ? error.stack.split('\n') : [],
|
||||
path: error.path,
|
||||
})
|
||||
})
|
||||
|
||||
export default graphQLInstance;
|
||||
|
Reference in New Issue
Block a user