Comments (4)
Fractal is a serializer and data transformer, so it doesn't really look at what you are passing to the request. You would need to handle the filter in your own code and then conditionally handle the data being sent to your transformer.
from fractal.
The same question from me.
from fractal.
I agree, however I think in the documentation there is a reference to the querystring being used to parse includes, which could cause some confusion.
Maybe we need to change the documentation to be explicit that Fractal does not choose what data you pass to it (such as posts with a specific ID or Author) and instead manages on how to display the data passed to it.
Interestingly, as an aside, I did try to solve this problem 3 years ago with a package I called query-grid, however the concept is pretty complex and it's probably easier to write things like filtering by hand per use-case rather than try to create a catch-all package.
from fractal.
Im going to close this for now, but if this is still a persistent issue please feel free to reopen.
from fractal.
Related Issues (20)
- [JsonApiSerializer] A way to return requested realtionship without attributes and links HOT 2
- How to transform when Parent Child Relation in same Table HOT 1
- Sparse Fieldsets without calculations HOT 2
- Modernize like it's 1.0 HOT 3
- What a current state of this project? PHP8 support plans? HOT 3
- Scope class toArray() method takes too much time HOT 4
- Possible incorrect pagination output from JsonApiSerializer HOT 2
- Support 7.4
- How to create custom ArraySerializer with the result of meta pagination array inside the collection array HOT 2
- JSON structure changed between v0.19.2 and v0.20.0 HOT 13
- Please use SEMVER on this package! HOT 7
- Breaking change between 0.19.2 and 0.20.0 HOT 1
- Update version 0.19.2 -> 0.19.3
- How to set `includes` for specific `includeItem` in the code for transformer?
- How to leave `data` resource key only for root transformer? HOT 1
- [Suggestion] Use a container to fetch transformers HOT 1
- How to make output of nested array
- Scope.php::fireTransformer is unable to handle `null` $transformer
- Is this package dead? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fractal.