usage in /server/api #326
-
Is there any way to use composable's in server api's ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Same question here !? is it possible ? |
Beta Was this translation helpful? Give feedback.
-
Also wondering the same. |
Beta Was this translation helpful? Give feedback.
-
@paulvonber @cfab @DavidDeSloovere This is already possible guys, though it's not reflected in the documentation. export default eventHandler(async () => {
const data = await GqlShips()
return data
}) |
Beta Was this translation helpful? Give feedback.
@paulvonber @cfab @DavidDeSloovere This is already possible guys, though it's not reflected in the documentation.
Gql Functions
can be called via the server as seen below