Skip to content

How can i get logs of requests hasura sends to action endpoints? #7212

Answered by praveenweb
wemersonrv asked this question in Question
Discussion options

You must be logged in to vote

@wemersonrv - If you would like to know the exact payload format that is being sent in the request to an Action, check below:

{
  "action": {
    "name": "<action-name>"
  },
  "input": {
    "arg1": "<value>",
    "arg2": "<value>"
  },
  "session_variables": {
    "x-hasura-user-id": "<session-user-id>",
    "x-hasura-role": "<session-user-role>"
  }
}

This is the request body that will be received by your laravel endpoint. You will probably need to transform your existing laravel handler to parse this body.

You can learn more in our docs

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@wemersonrv
Comment options

Answer selected by wemersonrv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants