There is no such thing as relationships in Datastore, because Datastore is a No-SQL database and relationships are a SQL databases concept [1].
Depending on your app, you have two options to “relate” properties in different parts of the database: 1- Copy the data from one entity to another entity you want to get the data from 2- Perform multiple requests to get all the data needed separately and manage it in your code This video explains more in depth what you should take into consideration when designing a database in Datastore (video is about Firestore, but the same can be applied to Datastore). [1]: https://cloud.google.com/datastore/docs/concepts/overview#comparison_with_traditional_databases [2]: https://youtu.be/v_hR4K4auoQ?t=303 On Tuesday, March 30, 2021 at 11:49:28 AM UTC+2 [email protected] wrote: > Using the native GAE DatastoreService: > `com.google.appengine.api.datastore.DatastoreService` > > How can you model the following relationships: > > - One-to-Many > - Many-to-One > - Many-to-Many > - One-to-One > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/0a639456-b804-4e51-84ee-4befa3f3055an%40googlegroups.com.
