terraform-provider-graphql icon indicating copy to clipboard operation
terraform-provider-graphql copied to clipboard

Set type for computed attributes

Open dlecocq opened this issue 11 months ago • 0 comments

Dealing with a 🤦 API, some endpoints seem to require that for some queries, the id be an Integer, but for others, a String. I know that for providing our own mutation variables, it's possible to make explicit whether we want a string or int (like "\"123\""), but it seems there's no way to do that for a computed variable. Any thoughts on how that could be accomplished? I keep getting back an id of "123", but when providing it to the endpoint, it gets recognized as JSON and converted to 123.

dlecocq avatar Mar 18 '24 22:03 dlecocq