There are two pools of data for each plugin: PluginSpace and ProfileSpace
If refid is a string, query will match a specific profile data in ProfileSpace.
If refid is null, query will match all profile data in ProfileSpace.
(doesn't apply to DB.Insert)
If refid is not provided, query will match data in PluginSpace.
NOTE: since WebUI can delete data in ProfileSpace,
you should refrain from referencing refid in your document to prevent getting residual garbage data.
If you need to make rival/friend feature, we recommend you to get all profile data by passing null to refid.
There will be 16 profiles maximum which is small enough to manage.
All query and doc should not have any fields start with __ while __refid being the only exception.
However, __refid field will still be ignored while other __ starting fields will cause an error to be thrown.
Database operation.
There are two pools of data for each plugin: PluginSpace and ProfileSpace
If
refidis a string, query will match a specific profile data in ProfileSpace.If
refidis null, query will match all profile data in ProfileSpace. (doesn't apply to DB.Insert)If
refidis not provided, query will match data in PluginSpace.NOTE: since WebUI can delete data in ProfileSpace, you should refrain from referencing refid in your document to prevent getting residual garbage data.
If you need to make rival/friend feature, we recommend you to get all profile data by passing null to
refid. There will be 16 profiles maximum which is small enough to manage.All query and doc should not have any fields start with
__while__refidbeing the only exception. However,__refidfield will still be ignored while other__starting fields will cause an error to be thrown.