add Order Entity and API Basics
This commit is contained in:
12
public/bundles/apiplatform/init-graphql-playground.js
Normal file
12
public/bundles/apiplatform/init-graphql-playground.js
Normal file
@@ -0,0 +1,12 @@
|
||||
window.addEventListener('load', function(event) {
|
||||
var loadingWrapper = document.getElementById('loading-wrapper');
|
||||
loadingWrapper.classList.add('fadeOut');
|
||||
|
||||
var root = document.getElementById('graphql-playground');
|
||||
root.classList.add('playgroundIn');
|
||||
|
||||
var data = JSON.parse(document.getElementById('graphql-playground-data').innerText);
|
||||
GraphQLPlayground.init(root, {
|
||||
'endpoint': data.entrypoint
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user