nileio / node-red-contrib-graphql-server

GraphQL and Subscription server implementation for Node-RED
MIT License
10 stars 1 forks source link

How to enable visual editor and voyager? #18

Closed plato79 closed 1 year ago

plato79 commented 1 year ago

I pasted these lines at the end of settings.js:

graphqlSchema: {
  editor: true
}
graphqlIn: {
  voyager: true
}

which didn't change anything. It still gives the same message.

I tried to put them in module.exports = { } section but this time I got an error. How can I enable these tools?

I saw another issue which mentions removing these tools altogether. Is this already done?

nileio commented 1 year ago

Hey @plato79 , the tools are still there. enabling them is simple in settings.js which is usually in ~/.node-red folder file add the following then restart node-red. make sure your file is valid , that is those settings should be part of the setttings ! not after the end of the file!

{
... some default settings are here
,
graphqlSchema: {
    editor: true,
  },
  graphqlIn: {
    voyager: true,
  },
.... other settings might also go here
}

attach a screen shot if you still face issues

nileio commented 1 year ago

Hi @plato79 can I close this ?