When not using an external API, we need to run an GraphQL-Server inside a Sveltekit-Endpoint.
We could leverage the Yoga-package that provides a Sveltekit-Integration Out-of-the-Box.
When using this approach we would probably need to scaffold a Sveltekit-Project in the template from create-webstone-project. We probably cant generate the Sveltekit-project on the fly, because we need to set this endpoint up
For being able to add the whole framework to an existing sveltekit-project we could also put this graphql-endpoint in a template and paste it in the api folder during the creation process.
When not using an external API, we need to run an GraphQL-Server inside a Sveltekit-Endpoint. We could leverage the Yoga-package that provides a Sveltekit-Integration Out-of-the-Box.
When using this approach we would probably need to scaffold a Sveltekit-Project in the
template
fromcreate-webstone-project
. We probably cant generate the Sveltekit-project on the fly, because we need to set this endpoint upFor being able to add the whole framework to an existing sveltekit-project we could also put this graphql-endpoint in a template and paste it in the api folder during the creation process.