Hi,
I want to search for a specific group channel by its metadata. In the documentation, mentioned that I can use MetaDataOrderKeyFilter to filter Group channels with metadata containing an item with the specified value as its key
For example, I already defined metadata when creating a channel:
var data = {
'propertyName': 'awesome name',
};
then I implemented metadataOrderKeyFilter
when retrieving the channel list:
var myChannelListQuery = sb.GroupChannel.createMyGroupChannelListQuery();
myChannelListQuery.includeEmpty = true;
myChannelListQuery.metadataOrderKeyFilter = 'awesome name';
myChannelListQuery.next(function(groupChannels, error) {
if (error) {
return;
}
console.log(groupChannels);
});
But the result is the same without implement this part myChannelListQuery.metadataOrderKeyFilter = ‘awesome name’;