Array in user Property

  • 23 August 2021
  • 1 reply

can we get all the array element which are set against any particular key while setting values. or any way to delete any element in array.


Best answer by Saish Redkar 23 August 2021, 20:48

View original

1 reply

Userlevel 7
Badge +10

Hey @rishi_ 
Not quite sure if I interpreted your question correctly here.

You can set an array as a user property in Amplitude as shown here in the JS SDK doc. You can leverage the set is/is not operators when querying the array properties as highlighted here

Hope this helps. If not, can you elaborate more on your use case?