Open lfaz opened 2 years ago
I tried something like:
app.get( '/playground', expressPlayground({ endpoint: '/graphql', env: 'development' }) );
Obviously doesnt seem to work. I could
I could make it work smth like:
if (process.env.NODE_ENV === 'development') { app.get( '/playground', expressPlayground({ endpoint: '/graphql', }) ); }
but to me doesnt seem very nice solution.
I tried something like:
Obviously doesnt seem to work. I could
I could make it work smth like:
but to me doesnt seem very nice solution.