Skip to content

Query params (non-predicate) via object notation #180

@allcentury

Description

@allcentury

This is a feature request - please let me know if this is the wrong place to do this.

It would be great if the client was able to take query parameters from an object and serialize them as query params rather than the documented byQueryString method.

Something like this:

client.products.withQuery({ offset: 50, limit: 50, sort: "product.createdAt asc" }).fetch()

which would build:

/products?offset=50&limit=50&sort=product.createdAt%20asc

That way the client can validate the query params, enforce encoding rules and make the DSL simpler.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions