Comments (9)
Sub objects that can be filtered need to be defined with FilterableRelation
for example, think in Mongoose this is maybe not always a actual relation but you can try that.
from nestjs-query.
So is this warning in docs outdated?
from nestjs-query.
No, that is probably correct.
I do not use mongoose so I do not know those parts.
from nestjs-query.
Using dot notation didn't work?
Scott
from nestjs-query.
Yes it did work, thanks.
from nestjs-query.
Going to close this issue as it's resolved.
from nestjs-query.
Actually its giving this error when call api call
Looks like it could not find a reference model, but there should be no reference model to search for as its a sub object
Error: Unable to lookup reference type for template"
1
:
" at MongooseQueryService.getReferenceModel (/home/node/app/packages/query-mongoose/src/services/reference-query.service.ts:339:11)"
2
:
" at MongooseQueryService.getReferenceQueryBuilder (/home/node/app/packages/query-mongoose/src/services/reference-query.service.ts:320:45)"
3
:
" at MongooseQueryService.findRelation (/home/node/app/packages/query-mongoose/src/services/reference-query.service.ts:138:40)"
4
:
" at /home/node/app/packages/query-graphql/src/loader/find-relations.loader.ts:34:47"
from nestjs-query.
Using dot notation didn't work?
Could you please elaborate?
Dot notation using where?
I tried this, where whould I put dot notation?
from nestjs-query.
I see this "Virtual relations"
Should this be the solution for now ?
from nestjs-query.
Related Issues (20)
- Implement schema based multi tenancy HOT 2
- One-to-many Relations is not visible in dto in other services via @ResolveField() HOT 2
- Relation fields in TypeOrm Embedded Entities are always null HOT 6
- UnPagedRelation Setup need help HOT 6
- Need an example in the documentation of how to work with inherited entities HOT 2
- Option to update multiple
- How to Implement Login Route and Secure Routes with JWT Bearer Authentication? HOT 1
- Query method returns empty array while count returns correct number HOT 7
- Missing comma in the example
- Composite primary keys generating an incorrect schema HOT 1
- Problem with cursor paging and sorting by a field with null values HOT 5
- Info received from hasNextPage is wrong in some resolvers HOT 5
- Issue with SetRelations on one relationship, setRelations with empty array assigns all existing values HOT 2
- Support SWC Loader HOT 1
- Dataloader not working correctly with Mongoose 6 and 7 HOT 7
- Improve subscriptions with authorize filter
- FilterableUnPagedRelation decorator not working with withDeleted: true HOT 3
- unexpected wildcard behaviour in like/ilike operator [mongo]
- Support FilterableField on array fields
- Subscription clean up HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-query.