Open AshotN opened 5 months ago
Trying to call _find like this leads to a type error if website is not available in query properties.
_find
website
_find is not limited by query properties
export const companyQueryProperties = Type.Pick(companySchema, ['name', 'active', 'id', 'created_at'])
const companys = await app.service('company')._find({ paginate: false, query: { $select: ['name', 'website'] }, user: context.params.user })
TypeScript should be aware that underscore methods have access to everything
Type "website" is not assignable to type "id" | "name" | "active" | "created_at"
"@feathersjs/feathers": "5.0.21",
Steps to reproduce
Trying to call
_find
like this leads to a type error ifwebsite
is not available in query properties._find
is not limited by query propertiesExpected behavior
TypeScript should be aware that underscore methods have access to everything
Actual behavior
Type "website" is not assignable to type "id" | "name" | "active" | "created_at"
System configuration
"@feathersjs/feathers": "5.0.21",