Avata Suljettu

Search, Filter & Soft for Navigation Properties with MongoDB #1785


User avatar
0
viswajwalith luotu
  • ABP Framework version: v4.4.X
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes (Microservice Template)
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

We have a Page where we have multiple Navigation Properties to the Entity, We woud like to have a Search (Free text) & Sorting on Navigation property columns. Is it supported in current version?

I saw a related post https://support.abp.io/QA/Questions/829/MongoDB-repository-and-use-of-the-aggregation-framework-for-sorting-and-inclusion-of-navigation-properties so would like to get a clarification on the approch to fullfill our requirement.


6 Vastaus (t)
  • User Avatar
    0
    liangshiwei luotu
    Tukitiimi Fullstack Developer

    Hi,

    https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/IMongoDbRepository.cs#L28

    We have provided the GetAggregate API, you can use it to do anything mongodb can do

  • User Avatar
    0
    viswajwalith luotu

    Hi,

    https://github.com/abpframework/abp/blob/48c52625f4c4df007f04d5ac6368b07411aa7521/framework/src/Volo.Abp.MongoDB/Volo/Abp/Domain/Repositories/MongoDB/IMongoDbRepository.cs#L28

    We have provided the GetAggregate API, you can use it to do anything mongodb can do

    Thanks for the response, We will check and let you in case of any concerns, In Meantime if u have any working sample that would be helpful.

  • User Avatar
    0
    maliming luotu
    Tukitiimi Fullstack Developer

    Reopen if you don't resolve the problem.

  • User Avatar
    0
    viswajwalith luotu

    Reopen if you don't resolve the problem.

    Hi @maliming do you have any sample for this?

  • User Avatar
    0
    maliming luotu
    Tukitiimi Fullstack Developer

    hi viswajwalith

    Sorry, I'm not good at MongoDb.

  • User Avatar
    0
    viswajwalith luotu

    hi viswajwalith

    Sorry, I'm not good at MongoDb.

    No worries, If possible we will try to provide some inputs if we are able to break it out

Made with ❤️ on ABP v8.2.0-preview Updated on maaliskuuta 25, 2024, 15.11