I am trying to export a list of emails of filtered users. I can see “User emails” and “Users” in the admin panel. When i go to “Users”, it doesnt have peoples emails as a field to search. And if i go to “user emails” I can only filter by ID / email address / parent / verified. So im unable to break it down to the specific filtered users inneed
Expected behavior
Email should be displaying with the rest of the user data.
Looking your project models, I understand that you’re talking about “Users” as a collection of your project.
The “Export <collectionName>” in a collection is a prebuilt action to export the whole collection into a csv, so you can exploit it outside Forest Admin.
Although your database is no-SQL, Forest Admin is based on collections, so users_emails is not directly inside users, but there is a many-to-many relationship between users and users_emails.
The easiest solution I think of is to create a new field “emailsAddresses” in the “users” collection, that fetches the list of addresses and make them accessible directly from the users.