How to generate query based off from user input

Are you just wanting to get the single one with a filter if a specific id is given, and if not then get all?

That logic will have to be done by the UI and sent as two different queries.

1 Like