Skip to content

Commit d02ec28

Browse files
author
Aleksander Korelskiy
committed
fix(graphql): serverBefore options now appended
1 parent 68069fb commit d02ec28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

transport/grapql/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type ServerOption func(*Server)
4242
// ServerBefore functions are executed on the HTTP request object before the
4343
// request is decoded.
4444
func ServerBefore(before ...RequestFunc) ServerOption {
45-
return func(s *Server) { s.before = before }
45+
return func(s *Server) { s.before = append(s.before, before...) }
4646
}
4747

4848
// ServerAfter functions are executed on the HTTP response writer after the

0 commit comments

Comments
 (0)