Skip to content
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

Patch returns undefined #579

Open
SaadiSidali opened this issue Mar 3, 2021 · 1 comment
Open

Patch returns undefined #579

SaadiSidali opened this issue Mar 3, 2021 · 1 comment

Comments

@SaadiSidali
Copy link

I was trying to make a service that tells the user how many elements got patched
the find method on the service returns an object but patch does not
image

image

The ui updates automatically and all that good stuff, even hooks work properly
image

but it would be nice if patch or other methods could return an object

@marshallswain
Copy link
Member

All methods should return an object. The only time it won't return the data should only be when the data being returned does not have an attribute that matches the "idField" configuration on the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants