Skip to content

usage in /server/api #326

Answered by Diizzayy
paulvonber asked this question in Q&A
Apr 23, 2023 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

@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

export default eventHandler(async () => {
  const data = await GqlShips()

  return data
})

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@cfab
Comment options

@DavidDeSloovere
Comment options

@devkon-at
Comment options

@fouss
Comment options

Answer selected by Diizzayy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants