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

Save the identifier in a property after inserting or creating a property with the result of a search with projection #280

Open
daniquir opened this issue Aug 3, 2022 · 0 comments

Comments

@daniquir
Copy link

daniquir commented Aug 3, 2022

After executing an insert I need to get the generated id to include it in a later insert
It would be possible to create a property with a query and projection or to be able to store the generated id after an insert
The idea is to be able to manually create a reference used by spring-data-jpa-mongodb in the post insert of the type:

"FIELD" : {
"$ref" : "REFERENCED_COLLECTION",
"$id" : ObjectId("5ab140fbf14cbd85f2258bce")
}

In sql there is an option to use valueComputed directly in the values or even create properties with queries
Would something like this be possible for liquibase-mongodb?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant