I'm deploying a GraphiQL instance (in Laravel with https://github.com/mll-lab/laravel-graphiql) and it's working so far, but I want to show the GraphiQL Explorer by default to the users.
Any idea how to do this with below code?
` function GraphiQLWithExplorer() { const [query, setQuery] = React.useState('');
return React.createElement(GraphiQL, {
fetcher: fetcher,
query: query,
onEditQuery: setQuery,
defaultEditorToolsVisibility: true,
plugins: [
GraphiQLPluginExplorer.useExplorerPlugin({
query: query,
onEdit: setQuery
})
],
});
}`
Thanks in advance!
I tried some options like: isVisible: true, visibility: true, showExplorerContext: true
Been going through the repo looking for something that would work, but it seems to be very hard to find