事实证明,我需要传入一个查询来限制从抓取包返回的结果。我在事件播放列表(grabbag)中有更多的歌曲,而不是与歌曲相关的图片。
传递给grabBagGetAllForQuery 的查询语法是什么?我基本上需要查看手提包中的特定 WNTrack 是否有反向引用。如果不是,则它没有与照片相关联,也不应该包含在返回的结果集中。
// FFDL SNIPPET
#
#
# WNPhoto
#
# event: reference back to EVENT object
# owner: reference back to FFUser
# trackTag: reference back to TRACK
# accessGroup: FFUserGroup
# location: reference back to VENUE object
# image: BYTEARRAY
# previewImage: BYTEARRAY
# thumbnailImage: BYTEARRAY
#
CREATE OBJECTTYPE WNPhoto (event REFERENCE /Events, owner REFERENCE /UserProfiles, trackTag REFERENCE /Tracks, accessGroup REFERENCE /FFUserGroup, image BYTEARRAY, previewImage BYTEARRAY, thumbnailImage BYTEARRAY)
#
# WNTrack
#
# title: "My Way"
# artist: reference to an object in /Artists
# duration: 297
# albumCover: BLOB
# album: "The Main Event - Live"
#
CREATE OBJECTTYPE WNTrack (title STRING, artist REFERENCE /Artists, duration NUMERIC, albumCover BYTEARRAY, album STRING)