I need to fetch data from the database API endpoint on the client side using observables.
In my current code, it is calling http://localhost:3030/humans/id?343 instead of http://localhost:3030/humans/343
What could be causing the issue in my query? Is it related to the query object: {id: 343} ?
I am trying to retrieve information about a specific human based on their id
findHuman(formGroup: FormGroup): Observable<Human[]> {
return from(this.feathers.service('human').find<Human>({
query: { id: 343 }
}))
.pipe(
map((result) => result.data)
);
}