-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Voyager tab #103
Comments
Managed to deal with errors above by upgrading react related packages to 16 Then got an issue So all we need to do from now on:
app.use('/voyager', voyagerMiddleware({ endpointUrl: '/graphql' }));
app.use('/voyager.worker.js', express.static(path.join(__dirname, '../node_modules/graphql-voyager/dist/voyager.worker.js')));
<div className={classNames('tab-content', {'-active': activeTab === 2,})}>
{this.state.schema && (
<Voyager introspection={e => this.graphQLFetcher({query: e})} hideSettings={activeTab !== 2} />
)}
</div> And we got desired tab with voyager |
@mac2000 Looks great 👍
It would be great if you submit this as a separate change.
If you know how to fix it in Voyager repo I would gladly accept PR there. |
Will be so nice to have an voyager tab side by side with editor and playground, so I can not only prototype my schema but also visualize it
Seems to be doable, in my understanding it will be one more dependency to editor and addition of tab to index.ts with Voyager component being added
But immediately after adding graphql-voyager editors build broke with bazillion of errors complaing that
At moment I'm even not sure from where to begin to fix that
The text was updated successfully, but these errors were encountered: