Giter Site home page Giter Site logo

Comments (9)

TriPSs avatar TriPSs commented on September 27, 2024

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.

iamkhalidbashir avatar iamkhalidbashir commented on September 27, 2024

Screenshot from 2023-09-20 19-21-57

So is this warning in docs outdated?

from nestjs-query.

TriPSs avatar TriPSs commented on September 27, 2024

No, that is probably correct.

I do not use mongoose so I do not know those parts.

from nestjs-query.

smolinari avatar smolinari commented on September 27, 2024

Using dot notation didn't work?

Scott

from nestjs-query.

iamkhalidbashir avatar iamkhalidbashir commented on September 27, 2024

Yes it did work, thanks.

from nestjs-query.

TriPSs avatar TriPSs commented on September 27, 2024

Going to close this issue as it's resolved.

from nestjs-query.

iamkhalidbashir avatar iamkhalidbashir commented on September 27, 2024

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.

iamkhalidbashir avatar iamkhalidbashir commented on September 27, 2024

Using dot notation didn't work?

Could you please elaborate?
Dot notation using where?

I tried this, where whould I put dot notation?
image

from nestjs-query.

iamkhalidbashir avatar iamkhalidbashir commented on September 27, 2024

I see this "Virtual relations"
Should this be the solution for now ?
image

from nestjs-query.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.