[GROUP Query] Only singletons are allowed in using expression #5339
Unanswered
Androidown
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I think that the fundamental limitation is that every object must go into a single group. In your case it works well, since you're then filtering the single group later. On your simple example, you can use regular select: Do you have a more elaborate use case that can't be written without |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently query like
would raise
QueryError: possibly more than one element returned by an expression where only singletons are allowed, because.basesis a multi-link.IMHO, it makes sense to use multi-link in using expression, and if it is allowed, GROUP query will be much more powerful.
For instance, a group query:
should produce the following result:
{ "key": {"base_name": "schema::Pointer"}, "elements": [ {"name": "schema::Link"}, {"name": "schema::Property"} ] }So I wonder if this is a design consideration that you guys think mult-link should not be supported, or is there any technical issue that blocks you from supporting such a feature?
Are there any plans to support multi-link in using expression?
Beta Was this translation helpful? Give feedback.
All reactions