Closed joriente closed 1 week ago
Hi @joriente,
Thanks for raising this ticket. Yes, the use of ErrorOr
in queries is fine. I noticed we should have used this in the GetTeamQuery
so I created a PBI to update this: https://github.com/SSWConsulting/SSW.CleanArchitecture/pull/432/files
You've absolutely done the right thing in your example above. 😄
Cheers, Dan
Hi
Pain
Wondering if its appropriate to use ErrorOr for queries. I have a query the returns all users for a given institution
Then my endpoint looks like this
Which if i supply an institution that does not exists, i get a nice 404 message
Not sure if i am doing it the right way though. any guidance is much appreciated