grapql refine crm app

do i still need to create typedefs and resolvers on my backend?
2 Replies
kapa.ai
kapa.ai5mo ago
Hi @Paaaaaat.. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- In the context of the CRM application built with Refine, the backend was generated using the nestjs-query (https://doug-martin.github.io/nestjs-query/docs/introduction/getting-started) library. This library allows you to create APIs without having to manually define all the resolvers and type definitions. Here's an example of how resolvers are defined in the backend of the CRM application:
{
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,
}
In this example, the resolver is defined for the CompanyEntity. The nestjs-query library takes care of creating the necessary GraphQL resolvers based on the provided configuration. You can explore the entire schema of the CRM application's backend at this link (https://api.crm.refine.dev/graphql). For more details on how to configure your backend with nestjs-query, you can check out the official documentation (https://doug-martin.github.io/nestjs-query/docs/introduction/getting-started). Source: Discord Support Thread (https://discord.com/channels/837692625737613362/1172870715482054797) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@694137791046615081> kapa.ai is still learning and improving, please let us know how it did by reacting below