Compare commits
2 Commits
714864cdbc
...
f4663a60e1
Author | SHA1 | Date | |
---|---|---|---|
f4663a60e1 | |||
d8c07e28a0 |
@ -33,7 +33,7 @@ $connectionOptions = array(
|
|||||||
ConnectionOptions::OPTION_CREATE => true,
|
ConnectionOptions::OPTION_CREATE => true,
|
||||||
// optionally create new collections when inserting documents
|
// optionally create new collections when inserting documents
|
||||||
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
|
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
|
||||||
ConnectionOptions::OPTION_DATABASE => 'database',
|
ConnectionOptions::OPTION_DATABASE => $database,
|
||||||
);
|
);
|
||||||
|
|
||||||
// open connection
|
// open connection
|
||||||
|
@ -50,6 +50,7 @@ if (isset($_GET['pwd'])){
|
|||||||
)
|
)
|
||||||
let answers = (
|
let answers = (
|
||||||
for v, e, p in 1..1 outbound user answered
|
for v, e, p in 1..1 outbound user answered
|
||||||
|
filter v.type==\'personal\' or v.type==\'aux\'
|
||||||
return {qkey: v._key, question: v.question, answer: e.answer}
|
return {qkey: v._key, question: v.question, answer: e.answer}
|
||||||
)
|
)
|
||||||
return {user: user._key, name: name[0], answers: answers}',
|
return {user: user._key, name: name[0], answers: answers}',
|
||||||
|
Loading…
Reference in New Issue
Block a user