-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors with entity backend methods #210
Comments
As opposed to static BackendMethods, instance BackendMethods (such as this one) require additional entity instance data in the request. In this case, the JSON object you send should look like this:
This is unfortunately not documented in the OpenAPI spec exported by Remult so please leave the issue open so we can fix that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
There are two errors that happen when creating a backend method.
To Reproduce
I have some code like this:
I originally had the commented out code active, and then tested with it commented out. I then got the first error shown below when sending a JSON object like
{ "args": [] }
or{ "args": ["string"] }
, and the second error when removingargs
and sending an empty object{}
or no body.Expected behavior
The function should be called without any problems
Desktop (please complete the following information):
^0.21.1
The text was updated successfully, but these errors were encountered: