Closed robblovell closed 1 year ago
I started it up as a pure express/feathers.js app not as a "feathersjs-serverless" app and it seems to behave correctly. There might be some nastiness around parsing query parameters when that module is in between the adapter, feathers and the request coming in.
Steps to reproduce
I have created a basic feathers controller using this feathers-prisma adapter and have tried to use various query parameters with no success. I have tried various queries:
$select
The official feathers.js documentation says this should work, but:
Looking through the code, it looks like the "[]" is not seen, so removing that gets us farther, but still have an error:
The query $select value didn't get converted to an array... Am I missing something?
$sort
$sort via the official feathers documentation:
$in
spaces.class.ts
spaces.service.ts
prisma model
Expected behavior
$select
Should select return only the organization_id and space_id's for the records.
$sort
Should sort by created_at descending
$in
Should return the records with the ids in the given array of ids.
Actual behavior
Errors:
Invalid query parameter
,$select.forEach is not a function
, orInvalid
this.Model.findMany() ...`System configuration
Tell us about the applicable parts of your setup.
This is a bare bones feather setup with no hooks. Using feathersjs-serverless.
Module versions (especially the part that's not working):
NodeJS version: v16.18.0
Operating System: OS/X M1
Browser Version: Firefox, Chrome, Safari
React Native Version: N/A
Module Loader: N/A