2019-10-15 08:30:19 +02:00
|
|
|
package serv
|
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
2019-11-28 07:25:46 +01:00
|
|
|
//nolint: errcheck
|
2019-10-15 08:30:19 +02:00
|
|
|
func introspect(w http.ResponseWriter) {
|
|
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
|
w.Write([]byte(`{
|
|
|
|
"data": {
|
|
|
|
"__schema": {
|
|
|
|
"queryType": {
|
|
|
|
"name": "Query"
|
|
|
|
},
|
|
|
|
"mutationType": null,
|
|
|
|
"subscriptionType": null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"extensions":{
|
|
|
|
"tracing":{
|
|
|
|
"version":1,
|
|
|
|
"startTime":"2019-06-04T19:53:31.093Z",
|
|
|
|
"endTime":"2019-06-04T19:53:31.108Z",
|
|
|
|
"duration":15219720,
|
|
|
|
"execution": {
|
|
|
|
"resolvers": [{
|
|
|
|
"path": ["__schema"],
|
|
|
|
"parentType": "Query",
|
|
|
|
"fieldName": "__schema",
|
|
|
|
"returnType": "__Schema!",
|
|
|
|
"startOffset": 50950,
|
|
|
|
"duration": 17187
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`))
|
|
|
|
}
|