foreign-sapphire
foreign-sapphire10mo ago

CRM backend

Hi, I'm stuck while trying to re create the backend for the CRM example (really don't understand wjhy the team is reluctant to make it public). Could someone help me out with it, please?
5 Replies
kapa.ai
kapa.ai10mo ago
Hi @highondefi. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Sure, I can provide some guidance based on the information available. The backend for the CRM example app is not publicly available, but it's built using the Nest.js Query package with very little customization on top. You can explore the schema at <https://api.crm.refine.dev/graphql> (https://api.crm.refine.dev/graphql). Here's a basic example of how resolvers are defined in the backend:
{
pagingStrategy: PagingStrategies.OFFSET,
enableTotalCount: true,
EntityClass: CompanyEntity,
DTOClass: CompanyModel,
CreateDTOClass: CompanyCreateInput,
UpdateDTOClass: CompanyUpdateInput,
enableSubscriptions: true,
enableAggregate: true,
}
{
pagingStrategy: PagingStrategies.OFFSET,
enableTotalCount: true,
EntityClass: CompanyEntity,
DTOClass: CompanyModel,
CreateDTOClass: CompanyCreateInput,
UpdateDTOClass: CompanyUpdateInput,
enableSubscriptions: true,
enableAggregate: true,
}
The backend configuration details can be found in the Refine documentation (https://refine.dev/docs/data/packages/nestjs-query/#backend-configuration). The team has chosen not to make the backend repo public mainly because it's straightforward to handle and making it public would come with maintenance responsibility. They believe that by reading the Nest.js Query documentation and the provided documentation link, you'll understand that building the CRM backend is a matter of creating tables, entities, and resolvers, which is mostly copy/paste work. I hope this helps! If you have more specific questions, feel free to ask. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai10mo ago
<@766681574413828136> kapa.ai is still learning and improving, please let us know how it did by reacting below
foreign-sapphire
foreign-sapphireOP10mo ago
It is not. It is extremely frustrating and erroneous. Almost considering ababndoning refine. @Batu
wise-white
wise-white10mo ago
@Batu @highondefi Did you get to solve this?
silky-coral
silky-coral10mo ago
Hey, bot is already answered that many times before as we did. If you read the answer from the bot, you'll see the reason. We have example of how we built and provided necessary documentation links to do so.

Did you find this page helpful?