()
| 212 | } |
| 213 | |
| 214 | func (gh *graphqlHandler) Handler() http.Handler { |
| 215 | return graphqlws.NewHandlerFunc(&graphqlSubscription{ |
| 216 | graphqlHandler: gh, |
| 217 | }, gh) |
| 218 | } |
| 219 | |
| 220 | // ServeHTTP handles GraphQL queries and mutations that get resolved |
| 221 | // via GraphQL->Dgraph->GraphQL. It writes a valid GraphQL JSON response |