You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#119 needs to have access to the response of the SQL query, so it knows which rows are affected for a subscription.
Currently an Arel ast is passed in to a middleware class as an argument and the return value is the argument for the next middleware. This needs a way call the next middleware from within the middleware to be able to get access to the response.
Rack and Express both have patterns to do this. Express passed the next middleware as an argument while Rack sets the next middleware in an initialiser. Passing the next middleware as an argument has the benefit that the classes can be stateless:
#119 needs to have access to the response of the SQL query, so it knows which rows are affected for a subscription.
Currently an Arel ast is passed in to a middleware class as an argument and the return value is the argument for the next middleware. This needs a way call the next middleware from within the middleware to be able to get access to the response.
Rack and Express both have patterns to do this. Express passed the
next
middleware as an argument while Rack sets the next middleware in an initialiser. Passing the next middleware as an argument has the benefit that the classes can be stateless:Here the
next.call
will call the next item in the middleware. The return value of this call will contain the actual response of the database.The text was updated successfully, but these errors were encountered: