小编Mic*_*ole的帖子

Cypher:从已删除的关系中获取信息

MATCH (n:Topic { mongoId: {_id} })-[r]-() DELETE n,r RETURN r;

返回错误'错误:关系1509已被删除'.

但是,我需要r.mongoId删除另一个数据库中的条目.

我如何使用Neo4j 2.2.3做到这一点?

我是通过Seraph库来做到这一点的.有没有办法收集属性,删除关系,并返回集合?

我只需要这些数据: MATCH (n:Topic { mongoId: _id })-[r]-() RETURN COLLECT(r.mongoId);

谢谢!

neo4j cypher

2
推荐指数
1
解决办法
294
查看次数

AWS上的Kubernetes 1.4 SSL终止

我有6个HTTP微服务.目前,他们运行疯狂的bash /自定义部署工具设置(dokku,mup).

我将它们停靠并转移到AWS上的kubernetes(使用kop进行设置).最后一块是转换我的nginx配置.

我想要

  1. 所有6个都有SSL终止(不在docker镜像中)
  2. 4需要websockets和客户端IP会话亲和力(Meteor,Socket.io)
  3. 5需要http-> https转发
  4. 1在http和https上提供相同的内容

我做了1. SSL终止将服务类型设置为LoadBalancer并使用AWS特定注释.这创建了AWS负载均衡器,但这似乎是其他要求死胡同.

我看了Ingress,但是没看到如何在AWS上做到这一点.这个Ingress控制器是否可以在AWS上运行?

我需要在每个pod中使用nginx控制器吗? 看起来很有趣,但我不确定它是近期/相关的.

我不确定从哪个方向入手.什么会起作用?

麦克风

ssl nginx amazon-web-services kubernetes

2
推荐指数
1
解决办法
1093
查看次数

Nuxt/Vue/Bootstrap-vue 在滚动时缩小导航栏

用 Nuxt 学习 Vue。想要根据页面滚动位置更改导航栏类。

看着几个 地方,但还没有找到一个有效的解决方案。

这是我必须使用的:

``` default.vue
<template lang="pug">
div(v-on:scroll="shrinkNav", v-on:click="shrinkNav")
  b-navbar.text-center(toggleable="sm" type="light" sticky v-b-scrollspy)
    #myNav.mx-auto.bg-white
      b-navbar-toggle(target="nav_collapse")
      b-navbar-brand.mx-auto(href="#") 
        | Example.org
      b-collapse#nav_collapse.mx-auto(is-nav='')
        b-navbar-nav(justified, style="min-width: 600px").vertical-center
          b-nav-item.my-auto(href='#home') Home
          b-nav-item.my-auto(href='/how') How
          i.fab.fa-earlybirds.fa-2x.mt-2.mb-3
          b-nav-item.my-auto(href='/values') Values
          b-nav-item.my-auto(href='/join-us') Join Us
  #content.container(v-on:scroll="shrinkNav", v-on:click="shrinkNav")
nuxt
    nuxt
</template>

<script>
  // resize navbar on scroll
  export default {
    methods: {
      shrinkNav() {
        var nav = document.getElementById('nav')
        var content = document.getElementById('content')
        if (nav && content) {
          if(content.scrollTop >= 150) {
            nav.classList.add('shrink')
          } else {
            nav.classList.remove('shrink')
          }
        } …
Run Code Online (Sandbox Code Playgroud)

vue.js vuejs2 nuxt.js bootstrap-vue

2
推荐指数
1
解决办法
6450
查看次数

AngularJS UI-Router.未知的提供商

我收到此错误,但不知道在哪里或如何找到并修复它.

我已经尝试过各种各样的东西,但是没有一个有效.

我的模块在这里定义:

'use strict';

// create the module
angular.module('mean.dashboard', ['ui.bootstrap', 'xeditable', 'ui.router']);

angular.module('mean.dashboard').run(function(editableOptions) {
  editableOptions.theme = 'bs3'; // bootstrap3 theme. Can be also 'bs2', 'default'
});
Run Code Online (Sandbox Code Playgroud)

这是我的路线的副本:

'use strict';

angular.module('mean.dashboard')

.config(['$stateProvider',
  function($stateProvider) {
    $stateProvider.state('dashboard', {
      url: '/dashboard',
      templateUrl: 'dashboard/views/index.html',
      controller: 'DashboardController'
    });
  }
]);
Run Code Online (Sandbox Code Playgroud)

控制器是:

'use strict';

angular.module('mean.dashboard')

.controller('DashboardController', ['$scope', '$http', 'Global', 'Dashboard',
  function($scope, $http, Global, Dashboard) {


    // Constants and globals

    $scope.global = Global;
    $scope.package = {
      name: 'dashboard'
    };

    ...
Run Code Online (Sandbox Code Playgroud)

Chrome的错误如下.你知道为什么吗?

谢谢!

Error: [$injector:unpr] Unknown provider: DashboardProvider …
Run Code Online (Sandbox Code Playgroud)

angularjs angular-ui-router mean.io

0
推荐指数
1
解决办法
8597
查看次数