graphql-docs
graphql-docs copied to clipboard
introspectionResult is undefined
![Screenshot 2019-12-16 at 01 03 06](https://user-images.githubusercontent.com/430872/70871497-d6aacb80-1f9f-11ea-8e98-607274533ffa.png)
<html>
<head>
<title>Docs</title>
<script src="https://unpkg.com/react@15/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
<script src="https://github.com/mhallin/graphql-docs/releases/download/v0.2.0/graphql-docs.js"></script>
</head>
<body>
<div id="root"></div>
<script>
window.onload = function()
{
function fetcher(query) {
return fetch('http://localhost:3000/graphql', {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
query: query,
}),
}).then(function(r) {
return r.json();
});
}
ReactDOM.render(
React.createElement(GraphQLDocs.GraphQLDocs, { fetcher }),
document.getElementById('root')
);
};
</script>
</body>
</html>