@@ 139,6 139,7 @@ func (s *Service) GQLPlayground(c echo.Context) error {
if err := formatter.WriteCSS(cssw, style); err != nil {
return fmt.Errorf("Error generating schema HTML: %w", err)
}
+ cssw.Flush()
cssStyle := cssBuf.String()
if schemaHTML == "" {
@@ 155,6 156,7 @@ func (s *Service) GQLPlayground(c echo.Context) error {
if err != nil {
return fmt.Errorf("Error formatting schema: %w", err)
}
+ schw.Flush()
schemaHTML = template.HTML(
fmt.Sprintf("<style>%s</style>%s", cssStyle, schemaBuf.String()),