How to implement a search functionality with relay?
So, the workflow is
- user navigate to
search form.
there should not be any query (as in relay container) when initializing the view.
- user fills the field values, and press the action/search button.
a relay query is sent to the server
- results are received from the server.
page displays it and relay reconciles the filtered results with local cache.
I have not seen an example of ad hoc query but only part of a relay container (which it resolves before component initialization). So, how to model it. should it be like a mutation?