ns_(not)op
ns_(not)op
TTwenty
Created by ns_(not)op on 8/26/2024 in #❓︱help
Getting `"Unknown type \"WebhookFilterInput\"."` errors on my local setup
I have successfully setup the frontend and backend on my localhost but while trying to create a new webhook by running this query
{
"operationName": "CreateOneWebhook",
"query": "mutation CreateOneWebhook($input: WebhookCreateInput!) { createWebhook(data: $input) { __typename targetUrl description createdAt updatedAt id operation } }",
"variables": {
"input": {
"targetUrl": "https://webhook.site/cb0a6704-87be-40d4-a6a8-a92c5e20ff0e",
"operation": "*.*",
"id": "95ff1b97-d290-4c57-9769-af77587e6377"
}
}
}
{
"operationName": "CreateOneWebhook",
"query": "mutation CreateOneWebhook($input: WebhookCreateInput!) { createWebhook(data: $input) { __typename targetUrl description createdAt updatedAt id operation } }",
"variables": {
"input": {
"targetUrl": "https://webhook.site/cb0a6704-87be-40d4-a6a8-a92c5e20ff0e",
"operation": "*.*",
"id": "95ff1b97-d290-4c57-9769-af77587e6377"
}
}
}
I am getting the error -
{
"errors": [
{
"message": "Unknown type \"WebhookCreateInput\".",
"locations": [
{
"line": 1,
"column": 35
}
]
},
{
"message": "Cannot query field \"createWebhook\" on type \"Mutation\".",
"locations": [
{
"line": 1,
"column": 58
}
]
}
]
}
{
"errors": [
{
"message": "Unknown type \"WebhookCreateInput\".",
"locations": [
{
"line": 1,
"column": 35
}
]
},
{
"message": "Cannot query field \"createWebhook\" on type \"Mutation\".",
"locations": [
{
"line": 1,
"column": 58
}
]
}
]
}
I am not able to find the root-cause of the error. I am using postgres-on-docker and wsl2 to run the setup.
5 replies