code: func setGraphQL(ctx *cli.Context, cfg *node.Config) {
  	if ctx.GlobalBool(GraphQLEnabledFlag.Name) && cfg.GraphQLHost == "" {
  		cfg.GraphQLHost = "127.0.0.1"
  		if ctx.GlobalIsSet(GraphQLListenAddrFlag.Name) {
  			cfg.GraphQLHost = ctx.GlobalString(GraphQLListenAddrFlag.Name)
  		}
  	}
  	cfg.GraphQLPort = ctx.GlobalInt(GraphQLPortFlag.Name)
  	if ctx.GlobalIsSet(GraphQLCORSDomainFlag.Name) {
  		cfg.GraphQLCors = splitAndTrim(ctx.GlobalString(GraphQLCORSDomainFlag.Name))
  	}
  	if ctx.GlobalIsSet(GraphQLVirtualHostsFlag.Name) {
  		cfg.GraphQLVirtualHosts = splitAndTrim(ctx.GlobalString(GraphQLVirtualHostsFlag.Name))
  	}
  }
docs: // setGraphQL creates the GraphQL listener interface string from the set
  // command line flags, returning empty if the GraphQL endpoint is disabled.