Can I observe database with second level deep relationships? #1487
StanyMiles
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @StanyMiles, Yes, you can observe anything, with very few exceptions such as changes to the database schema itself. If something does not behave as expected, please check the Why is ValueObservation not publishing value changes? FAQ, and report your findings! |
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
-
Is there a way to observe database changes when I have second level relationships using GRDB? Or should I write my own SQL queries?
I have a Meal which has many MealIngredients each of them has one Ingredient
I would like to observe Meals with all deeper objects.
Here's my observation function:
This is my schema with records:
Beta Was this translation helpful? Give feedback.
All reactions