Closed eramudeep closed 7 months ago
Hello @eramudeep , you can get active-game
via the get
method. After getting it then you call fetch the record using the id and throw some kind of error if the id passed is not active-game
Image from https://feathersjs.com/guides/basics/services.html
The get method contains an Id
argument which represents any more query params after the service name
Image from https://feathersjs.com/api/services.html
I am new to
feathersjs
i am very much confused about the endpoints. Consider I created a Service Namedgame
now I have one endpoint which isgame
which will support'find', 'get', 'create', 'patch', 'remove'
But i wanted to create an endpoint likegame/active-game
and fetch only one record which hasstatus:'active'
i am very much confused :(