Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

post-execution middleware is failing to be called #374

@chemdrew

Description

@chemdrew

Inside the request handler the next callback is not being called on completion

This does not allow for using the after event in restify res.on('after', () ={}) or doing middleware chaining in express

app.use(<pre-execution middleware>);

app.use('/graphql', graphqlHTTP({
  schema: schema,
}));

app.use(<post-execution middleware>);

Could we get this added in by default or add a toggle in the options to forward the middleware?
I'll create the PR if this is deemed valid.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions