Home platformOS Logo

Selecting Fields Available for Search

Last edit: Apr 10, 2020

Some use cases require you to select fields available for search. For example, you want to give your users the ability to search through users but only using their first_name.

Profile fields

query get_owners {
  people(query: { keyword: "John", fields: [{ name: "first_name" }] }) {
    results {
      first_name
    }
  }
}

Returns users whose first_name exactly matches John.

Contribute to this page

Github Icon

Questions?

We are always happy to help with any questions you may have.

contact us