Skip to content

How to limit response fields for relationships? #326

Discussion options

You must be logged in to vote

I just wrote a test case for your use case.
https://github.com/okuramasafumi/alba/blob/main/test/usecases/field_selection_test.rb

Basically what we do here is to add another custom DSL to Alba. You can try this out and see how it goes. Let me know if you have some trouble.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@okuramasafumi
Comment options

Comment options

You must be logged in to vote
1 reply
@okuramasafumi
Comment options

Answer selected by okuramasafumi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants