This example demostrates how to connect WunderGraph with a REST API using OpenAPI.
Mocks to develop your WunderGraph app are also provided in wundergraph.server.ts
,
allowing you to iterate faster or even develop your app before the API is available.
npm install && npm start
curl -d text=Hello http://localhost:9991/operations/NewNote
Notice the returned JSON with the newly created ID:
{ "data": { "notes_newNote": { "id": 1 } } }
curl 'http://localhost:9991/operations/NoteByID?id=1'
Read the Docs.
Join us on Discord!