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

API responses returned from create requests do not return custom fields #691

Open
atruskie opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@atruskie
Copy link
Member

For a resource just created with POST /resource we return the created record but none of the AREL based virtual custom_fields2 definitions are included.

That's because we use a simple (and undecorated by our magic/helpers0 model.save call to persist and load the new object to the database.

We need to find a better way to either:

  • apply a projection to the .save call so additional virtual attributes will be returned with the model on creation and emitted in the api
  • or a reload of our model after creation using Filter::Single.new so that all the extra properties are returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant