Run GraphQL using server functions
Hello, I am trying to offer a GraphQL API using TanStack Start server functions. Is this possible? I have not found any example yet 😢
6 Replies
afraid-scarlet•4mo ago
in which way?
calling a graphql api from a server function? sure
but a server function is not a public API
for that, you need an API route
or, as we call them now, a Server Route
sensitive-blueOP•4mo ago
Oh hmmmm can you point me to the docs of the Server Routes please?
afraid-scarlet•4mo ago
on the alpha version they are now called server routes
previously known as API routes
afraid-scarlet•4mo ago
Server Routes | TanStack Start React Docs
// TODO: Add redirect from api-routes to server-routes Server routes are a powerful feature of TanStack Start that allow you to create server-side endpoints in your application and are useful for hand...
afraid-scarlet•4mo ago
API Routes | TanStack Start React Docs
API Routes are a powerful feature of TanStack Start that allow you to create server-side endpoints in your application without the need for a separate server. API Routes are useful for handling form s...
sensitive-blueOP•4mo ago
Thankss ❤️❤️