hasura / hasura/graphql-engine
Issue with conflict in RESTified endpoint name and allow list operation name
- 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
Assessment
This issue has not been assessed yet.