Support for subqueries #93
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Research
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#102 Rename Unset update statement to Reset
slendium/ocd
#100 Add Field::fromClass()
slendium/ocd
Reference
slendium/ocd#93
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently it is not possible to query a collection based on the properties of a referenced object. For example, a
Userentity might have anAddress $addressproperty that references a object from theaddressescollection. Finding all users that live in a certain city would require querying the pathaddresses.city, which should not be confused with a query to a JSON column containing anaddresses.citypath.To solve this issue, two things must change:
One possibility is to introduce a
ValuePathobject to replaceFieldPath's. ThisValuePaththen has two properties:non-empty-list<non-empty-string> $fieldPathandlist<string> $innerPath. The$fieldPathtraverses objects/entities and their references, where the last part selects the field on the final object. The (optional)$innerPathcan then traverse into the object to retrieve values from nested values, such as JSON fields.Possibly related to #33.
Re-added v0.3 milestone because the distinction between
FieldPathandNestedPathshould be made as soon as possible.FieldPathis already quite commonly used.