terraform-community-providers / terraform-provider-railway

Terraform provider for railway.app
https://registry.terraform.io/providers/terraform-community-providers/railway/latest/docs
Mozilla Public License 2.0
22 stars 1 forks source link

GraphQL method names are backwards #18

Closed aleksrutins closed 8 months ago

aleksrutins commented 8 months ago

I could be wrong, but I'm pretty sure that this repository's GraphQL method names are backwards - for instance, this repo calls createService, but the actual mutation is serviceCreate. This would likely be the cause of #16, if true.

Funding

Fund with Polar

aleksrutins commented 8 months ago

Oddly, it is still working at least partially - I'm able to create a service, but not able to set the source repo.

pksunkara commented 8 months ago

I am calling the graphQL correctly (https://github.com/terraform-community-providers/terraform-provider-railway/blob/master/internal/provider/generated.go#L3175). It's just that I renamed the functions locally.

pksunkara commented 8 months ago

More references: https://github.com/terraform-community-providers/terraform-provider-railway/blob/master/internal/provider/resource_service.graphql#L16-L22