Is there a way to find a user by a key/value in their metadata?

  1. Versions: Nakama 3.13, on Docker,
  2. Server Framework Runtime language TS/JS

We’re storing some extra, unique data regarding the user in the metadata, and I was wondering if we could query the database by that key/value pair in the metadata somehow. It’s okay if it’s not super optimized, because it’ll be rarely used- but it would save us some trouble.

Currently, it seems like we’d have to loop over every user and check the key/value by hand which doesn’t seem ideal.

Hi Raid, just to understand your usecase: is this search intended for some rare gameplay feature or is it for some support / admin tasks or something entirely different ?