Nasal Piercings Manipulator

    graphile-search-plugin

    0.1.2 • Public • Published

    graphile-search-plugin Build Status

    npm install graphile-search-plugin 

    This PostGraphile schema plugin was built to enable ordering via ts_rank of full-text search on all tsvector fields, providing auto-generated queries within PostGraphile.

    Usage

    1. Append the new plugins!
    2. Query search<YourTsvectorColumn> in the conditions field
    3. Enjoy!
     
    import PgSearchPlugin from 'graphile-search-plugin';
     
    app.use(
      postgraphile(connectionStr, schemas, {
        appendPlugins: [
            PgSearchPlugin
        ]
      })
    );

    Examples

    Look in the tests ;)

    Testing

    createdb test_database
    psql test_database < sql/roles.sql
    psql test_database < sql/test.sql
    yarn test

    Install

    npm i graphile-search-plugin

    DownloadsWeekly Downloads

    33

    Version

    0.1.2

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    13.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • pyramation