hasura / hasura/graphql-engine

Issue with conflict in RESTified endpoint name and allow list operation name

Open
#7,150 0 comments 0 reactions 0 assignees View on GitHub
c/console k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

While creating a RESTified endpoint, the call being made by the console adds the REST endpoint to the `allow-list` collection in the query collection list, instead of a dedicated list for RESTified endpoint:

```JSON
{
"type": "bulk",
"source": "default",
"resource_version": 1062,
"args": [{
"type": "add_query_to_collection",
"args": {
"collection_name": "allowed-queries",
"query_name": "testREST",
"query": "query MyQuery {\n articles {\n id\n title\n }\n}"
}
}, {
"type": "create_rest_endpoint",
"args": {
"name": "testREST",
"url": "test",
"definition": {
"query": {
"query_name": "testREST",
"collection_name": "allowed-queries"
}
},
"methods": ["GET"]
}
}]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.