使用Neo4j的流星帐户

时间:2015-10-05 16:57:56

标签: meteor neo4j meteor-accounts

我正在努力让Meteors帐户密码与neo4j一起使用。 “登录”已在一个主题中清除,我的问题是:如何让Accounts.createUser与Neo4j一起使用?

谢谢!

目前我正在尝试:

Meteor.startup(function () {
  Accounts.users = Meteor.neo4j.collection('User');
  Accounts.createUser({username: 'admin', password: 'admin'});
});

但是抛出了这个错误:

W20151005-19:43:41.165(2)? (STDERR) { error: 
W20151005-19:43:41.166(2)? (STDERR)    { [Error: Property values can only be of primitive types or arrays thereof]
W20151005-19:43:41.166(2)? (STDERR)      message: 'Property values can only be of primitive types or arrays thereof' },
W20151005-19:43:41.166(2)? (STDERR)   uid: 'f0deded1be5deeb03ae2b29de735d81c8ee45fa518600dd16bc5cdf7de581bec',
W20151005-19:43:41.166(2)? (STDERR)   optuid: '6ebc087e0a93a04473772df8d4c2ded5ee59987ee7a870dbc0802930c565d39b',
W20151005-19:43:41.167(2)? (STDERR)   query: 'MATCH (n {_id: {_id}}) WITH count(n) AS count_n WHERE count_n <= 0 CREATE (n {properties})',
W20151005-19:43:41.167(2)? (STDERR)   opts: 
W20151005-19:43:41.167(2)? (STDERR)    { properties: 
W20151005-19:43:41.167(2)? (STDERR)       { createdAt: Mon Oct 05 2015 19:43:41 GMT+0200 (CEST),
W20151005-19:43:41.167(2)? (STDERR)         services: [Object],
W20151005-19:43:41.167(2)? (STDERR)         username: 'admin',
W20151005-19:43:41.168(2)? (STDERR)         _id: '7Dy7t5iJRbj84tFGa' },
W20151005-19:43:41.168(2)? (STDERR)      _id: '7Dy7t5iJRbj84tFGa' },
W20151005-19:43:41.168(2)? (STDERR)   date: Mon Oct 05 2015 19:43:41 GMT+0200 (CEST) }

0 个答案:

没有答案