I have the following script:
type Band struct { Name string LocationId *datastore.Key Albums []Album } type Album struct { Name string GenreId *datastore.Key Year int }
What I want to do is request a Band Albumskey for an album with a specific key GenreId.
Band
Albums
GenreId
I have found the answer. It turned out to be simple. Instead
Filter("GenreId =", genreId)
I used
Filter("Albums.GenreId =", genreId)
This gave me valid query results.
Source: https://habr.com/ru/post/1539778/More articles:Sort list in progressive numerical order - for-loopGoogleMaps - onPause () function call - androidISeries Data Source Lock - ibm-midrangeThe function always returns False. What for? - vbaSlick 2.0 Map java.util.Date in a table - scalaHow does awk NF filename work? - bashDjango nested tags - pythonWrapping / Casting C struct in Cython for Python class - cSpring beans decoration provided by Grails - springHow to detect iBeacon in android without using any library - androidAll Articles