Skip to content

90TechSAS/baucis-query-builder

Repository files navigation

baucis-query-builder

Build Status

Easily Build complex requests

Usage

Care with current version! Still WIP...

  • Import the module in your angular app.

  • Set the root url:

        myApp.config(['zlQueryBuilderProvider', function(zlQueryBuilderProvider){
            zlQueryBuilderProvider.setRootApiPath('htp://myApi.com/');
        }]);
  • Define your services with specific paths

        myApp.service('resource', [function(zlQueryBuilder){
            this.queryBuilder = zlQueryBuilder.get('resourcePath');
        }])
  • Use the queryBuilder anywhere (directly in the service or in the controllers)

       qb
           .paginate(myPaginationObject)
           .sort('field')
           .populate([{path: 'subObject1'}, {path: 'subObject2'])

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published