Compare commits

...

2 Commits

Author SHA1 Message Date
f4663a60e1
besseres aql 2020-06-23 15:58:48 +02:00
d8c07e28a0
config error 2020-06-23 15:58:29 +02:00
2 changed files with 12 additions and 11 deletions

View File

@ -33,7 +33,7 @@ $connectionOptions = array(
ConnectionOptions::OPTION_CREATE => true,
// optionally create new collections when inserting documents
ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST,
ConnectionOptions::OPTION_DATABASE => 'database',
ConnectionOptions::OPTION_DATABASE => $database,
);
// open connection

View File

@ -50,6 +50,7 @@ if (isset($_GET['pwd'])){
)
let answers = (
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 {user: user._key, name: name[0], answers: answers}',