Configure Atlas App Service databaseName per environment?

Hi

I am using Atlas App Services, Data API and GraphqlAPI but not Sync (as no mobile).
I would like to configure which databaseName my Atlas App Services app connects to according to an environment value/variable. I can see that you can configure environment variables in e.g. development.json, the cluster name can be varied (including using a templated value) in data_sources//config.json to point at a different cluster by environment. But I am not keen to create a new mongoDB cluster per environment, only a database. The CI/CD blog post that configures Sync at How to Build CI/CD Pipelines for MongoDB Realm Apps Using GitHub Actions | MongoDB suggests Sync can be made to work this way. Can this be done without using Sync?

Thanks in advance