hasura / hasura/graphql-engine
Prefix for operation names
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
Hello,
it's very hard to explore operations by its labels when having multiple data sources (dbs and remote schemas), where operation names are not prepared to be unique or readable in multi data environment ie.
- configured two data sources where each has same operation name "Customers"
- configured two external databases, one production and one for testing where each has same schema and tables structure
- configured multiple data sources where operation names are not self explanatory (which operation belongs to which source)
My idea is to being able to configure prefix via checkbox for each data source:
- for databases, checkbox for database name and schema name (when available) so operation can be available via name ie.: `MyDatabaseName_MyDatabaseSchemaName_MyTableName` or `MyDatabaseName_MyTableName`
- for remote schemas, checkbox for remote schema name so operation can be available via name ie.: `MyRemoteSchema_Customers`
- possibility to define own join character (like "_") will be helpful
EDITED:
Now I see that my suggestion doesn't resolve second issue where production and test database can have the same name... so maybe just one text field for prefix definition per database or remote schema configuration will be the solution? as default values or placeholders can be values proposed above.
EDITED2:
This will resolve also unique names for types?
Contributor guide
Assessment
This issue has not been assessed yet.