-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hi, i have the following query
var users = db.Query<User>().Select(u => new User()
{
Birthday = u.PublicBasicInfo? u.Birthday : null,
Email = u.PublicBasicInfo? u.Email : null,
Id = u.Id,
Name = u.Name,
PublicBasicInfo= u.PublicBasicInfo
});
but it throws
ArangoDB.Client.ArangoServerException: AQL: syntax error, unexpected identifier, expecting } near '`.`birthday` @P1 , `email` : ...' at position 1:92 (while parsing). ErrorNumber: 1501 HttpStatusCode: 400
also, the previous LINQ query produces the next query:
for `u` in `users` return { `birthday` : `u`.`publicBasicInfo` `u`.`birthday` @P1 , `email` : `u`.`publicBasicInfo` `u`.`email` @P2 , `_key` : `u`.`_key` , `username` : `u`.`username` , `publicBasicInfo` : `u`.`publicBasicInfo` }
is there a way to execute the previous query without using a raw query?
Metadata
Metadata
Assignees
Labels
No labels