How do you configure GraphQL to work with OpenStack?

129
February 28, 2019, at 00:10 AM

How would you configure GraphQL to work on OpenStack?

The following code works locally, but when I move it onto my OpenStack instance and try to open GraphiQL (that comes native with the GraphQL package) the site 'refused to connect'.

const express = require('express'); 
const graphqlHTTP = require('express-graphql'); 
const schema = require("./schema"); 
const root = require("./resolvers"); 
 
var app = express(); 
 
app.use('/graphql', graphqlHTTP({ 
  schema: schema, 
  rootValue: root, 
  graphiql: true, 
})); 
app.set('port', 3000); 
app.listen(app.get('port')); 
 
console.log('Running a GraphQL API server at ' + app.get('port'));

Rent Charter Buses Company
READ ALSO
Using Array inside the getElementsByClassName()

Using Array inside the getElementsByClassName()

im new in javaScript and i was trying to hide a multiple divs by running a functionthe divs are exist, they called test1 until test8

146
Limit zoom to designated images

Limit zoom to designated images

The following js code works fineThe problem is it's zooming ALL "img" tags on the page

135