hasura-where
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

hasura-where

Actions Status Coverage Status npm MIT licensed

Run hasura where queries on the client side:

const items = [
  {
    name: 'Joe',
    address: {
      country: 'us',
    },
  },
  {
    name: 'Alice',
    address: {
      country: 'uk',
    },
  },
  {
    name: 'Bob',
    address: {
      country: 'de',
    },
  },
];
console.log(
  filter(items, {
    address: {
      country: {
        _in: ['us', 'de'],
      },
    },
  })
);
// [
//   {
//     name: 'Joe',
//     address: {
//       country: 'us',
//     },
//   },
//   {
//     name: 'Bob',
//     address: {
//       country: 'de',
//     },
//   },
// ];

Build History

Build history

Readme

Keywords

none

Package Sidebar

Install

npm i hasura-where

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

35.2 kB

Total Files

6

Last publish

Collaborators

  • eun