mayteio / ra-aws-amplify

🎩 Create backends for your aws-amplify project at the speed of light with react-admin
MIT License
42 stars 7 forks source link

@searchable directive integration with filter search form #12

Open mayteio opened 4 years ago

mayteio commented 4 years ago

We can probably switch out the GET_LIST query from listPosts to searchPosts and build the correct filter structure for graphql if there's a conventional query parameter for searching.

q as a search parameter is used in the List#filter react-admin docs.

Additionally, we could provide an <RaModelSearchForm /> or something that abstracts this away so it just works without the user having to worry about using the right query param in the first place.