This can be done using a “route overidde”:
Figure your model matches
user creation form there is a
project field, that search for projects. (the ugly request on all strings)
Opening dev-tools show the details of the request:
GET https://<server>:<port>/forest/project?<query params>
This route is on your server and has to be overriden. Note that the searched term is the query param named
In your server, it’s found in
This page show help about how to do this.
So you have to:
- remove the
next() call already here
- write the request that match perfectly your needs
- serialize the result before returning it.
Important: You will also need to repeat the operation for the
Note: The GET route is used on every
project search, including the search from
project collection. If you want a separated behavior, you can use the query parameter
context to distinguish the cases.
Let me know if that’s ok for you.