You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
makes sense: if an action can have a null response (see #4405 ), also can respond with a string like "Accepted" or "OK" or another scalar type like a counter number etc.
with the actual version (2.1.0 and 2.1.1) continue the issue
samuela
changed the title
Actions do not support return scalar types
Actions do not support returning scalar types
Dec 29, 2021
the workaround is to implement a custom action which adds more indirection to the flow. It would be great if Hasura allows simple scalar and json response transform that complements the action request transform functionality.
Version Information
Server Version: v2.0.10
CLI Version (for CLI related issue): n/a
Environment
macOS 11.6
What is the expected behaviour?
Creating an Action like
to work.
Keywords
Actions, graphql, scalar types, custom types
What is the current behaviour?
I'm getting an error:
How to reproduce the issue?
String
Screenshots or Screencast
Please provide any traces or logs that could help here.
n/a
Any possible solutions?
Having to create custom types for every action
Can you identify the location in the source code where the problem exists?
n/a
If the bug is confirmed, would you be willing to submit a PR?
yes
The text was updated successfully, but these errors were encountered: