constant-blue
constant-blue•7mo ago

I am reviewing the schema.types.ts file

I am reviewing the schema.types.ts file so as to properly create Postgresql tables, columns, column attributes, and default values, and I see that in the Refine JS app-crm-minimal demo, there is over 4000 lines of code. How are people creating working Postgres db to align with the grapqhl schemas? Is there a way to import this file into hasura or create a script that looks over this file and outputs the proper info needed to generate working tables in Postgres?
3 Replies
harsh-harlequin
harsh-harlequin•7mo ago
Hey @grq79 we used nestjs-query package to generate backend. See the relevant section of documentation here: https://refine.dev/docs/data/packages/nestjs-query/#backend-configuration
Nest.js Query | Refine
Refine provides a data provider for APIs powered with Nest.js Query, a module for Nest.js that provides easier ways to build CRUD graphql APIs.
exotic-emerald
exotic-emerald•7mo ago
@Batu Thank you for the link. I will look it over. I truly appreciate it.
deep-jade
deep-jade•7mo ago
mannn maybe I just dont really understand graphql or just a missing that whole side of my fullstack knowedge but I can't for the life of me figure out how to generate a backend at all. Does anyone have a tutorial? Or can get on discord with me 😭