Alexander Suraphel01/10/2022, 12:22 PM
Dariusz Kuc01/10/2022, 4:03 PM
but in case of
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.
does not generate schema directly from DB. If you want to expose your DB schema directly then take a look at
as it might fit your needs.
Alexander Suraphel01/10/2022, 4:06 PM
Dariusz Kuc01/10/2022, 4:09 PM
. 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 Suraphel01/10/2022, 4:20 PM