Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend support around the Extended Reference Pattern via DocumentReferences. #4801

Open
christophstrobl opened this issue Oct 2, 2024 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@christophstrobl
Copy link
Member

Explore if it makes sense to have a different extraction pattern for storing the relation than for the retrieval. Doing so would allow users to build dedicated views on the data for reading operations that require less data and must not resolve the reference.

class Payment {

    String id;

    @DocumentReference(fields = { "id", "name", "birthdate" }, lookup="{ '_id' : ?#{#target.id} }")
    Customer sender;

    PaymentReceiver receiver;

    // ...
}
@christophstrobl christophstrobl added the type: enhancement A general enhancement label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant