Giter Club home page Giter Club logo

Comments (6)

benbarclay avatar benbarclay commented on August 16, 2024

The filter in this example would be very useful. In the use case I am playing around with, I need to find a specific record based on a UUID saved inside the object, but have no way way to query the API to find the object other than by object ID.

Being able to specify arbitrary queries would solve this easily.

from fortune.

cphoover avatar cphoover commented on August 16, 2024

bump!

from fortune.

gr0uch avatar gr0uch commented on August 16, 2024

There is some new documentation in the JSON API spec that specifies a query for what fields to include in a resource and how to sort resources, so perhaps I'll just mention that here. The main reason I am hesitant to implement this is that the spec doesn't mention how exactly to construct arbitrary queries, and creating something independent of the spec might not be a good idea.

from fortune.

cphoover avatar cphoover commented on August 16, 2024

There is some new documentation in the JSON API spec that specifies a query for what fields to include in a resource and how to sort resources, so perhaps I'll just mention that here. The main reason I am hesitant to implement this is that the spec doesn't mention how exactly to construct arbitrary queries, and creating something independent of the spec might not be a good idea.

Yes but paging/limiting a result set is essential for any real world application. Seems to me that the JSON API is a work in progress and you can always create a new version that matches the spec if/when it is changed to add support for such features.

from fortune.

alexbfree avatar alexbfree commented on August 16, 2024

is this filtering implemented? Or is this just an idea? I don't think I can use fortune in my application without filtering (and pagination)

from fortune.

Cryrivers avatar Cryrivers commented on August 16, 2024

Yeah same question as OP. Is there any plan to implement filter, pagination and sort? As far as I know, JSON API spec is about to be finalized. It would be a great time to implement such things.

from fortune.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.