Newline Pending Merge

    This package has been deprecated

    Author message:

    This package is no longer maintained. Use the package 'qs' instead.

    feathers-query-stringify

    0.1.1 • Public • Published

    feathers-query-stringify

    This simple code snippet converts feathersJS query objects into an url query string that you can use to build your REST API calls.

    It can handle nestes Objects as well as Arrays.

    Example

    import stringify from "feathers-query-stringify";
    
    const query = {
      $limit: 10,
      $sort: {
        createdAt: -1
      }
    }
    
    const output = stringify(query);
    
    // => "$limit=10&$sort[createdAt]=-1"

    Install

    npm i feathers-query-stringify

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.89 kB

    Total Files

    5

    Last publish

    Collaborators

    • adrianjost