PromptQL TS Lambda connector unsupported command because of scalar return type

Trying to add a command from TS Lambda connector PromptQL to execute some business logic. Followed the docs here: Lambda Connector Basics | Hasura PromptQL Docs

But, the PromptQL schema is showing the hello command as unsupported because of

Return type not supported: String! (reason: scalar return types are not supported)

Are scalar types really not support? Docs need an update then. I can probably fix this by changing the return type to be an object.

Thanks for this, @Shahidh — and you’re absolutely right: return types need to be an object or an array of objects.

I understand we have some work ongoing that will change this, but it’s also an opportunity for us to update the boilerplate functions (at least for the TS connector) to more clearly explain what’s going on.