I need a field, that contains one pointer. Pointer type is not suitable cuz pointer may be for different entities, so I thought about Array or Object. For me it will be no matter which except theoretical performance when search by this field.
As to Array - it’s simple, I can see in a dashboard pointer as object with type pointer and className.
But in case with Object field - there is only key objectId
:
{ "pointerKey": { "objectId": "gmMepz8C06" } }
So pointers only for Pointer, Array or relations?
If for search query with Object I could use
equalTo('fieldName.pointerKey', pointer)
then what can I use with Array - equalTo('fieldName', [pointer])
?
May be 'fieldName[0]'
?