Alexander Suraphel
01/10/2022, 12:22 PMDariusz Kuc
01/10/2022, 4:03 PMKGraphQL
but in case of graphql-kotlin
we generate schemas from your source code -> so it could generate the schema if you have your DB structure represented in the code. Personally I believe that GraphQL works best as an abstraction of your domain/db data into something that is usable for your experience layer so I would expose some transformed data views instead.
graphql-kotlin
does not generate schema directly from DB. If you want to expose your DB schema directly then take a look at hasura
as it might fit your needs.Alexander Suraphel
01/10/2022, 4:06 PMDariusz Kuc
01/10/2022, 4:09 PMSqlDelight
. I'd assume you might be able to use those files to generate the schema but it might get troublesome due to interfaces/methods (you could workaround it using schema generator hooks but it might be simpler to create separate GraphQL schema files from which you would call sql stuff)Alexander Suraphel
01/10/2022, 4:20 PM