Skip to content

lev 0.0.7

Install from the command line:
Learn more about npm packages
$ npm install @esseswann/lev@0.0.7
Install via package.json:
"@esseswann/lev": "0.0.7"

About this version

lev

Hasura-like GraphQL to YDB-flavored SQL converter for serverless use

Similarities to Hasura

Like Hasura provides GraphQL interface to a specific SQL database, in this case YDB. Requires a metadata description of relationship between the tables and allows for flexible permission rules

Differences from Hasura

Since YDB does not have views, their implementation is based around named variables like

$my_table = select *
              from `table` t 
              join `another_table` a
                on a.id = t.a_id

Moreover unlike Hasura permissions are also implemented in this way, which is actually more flexible.

Serverless

The whole reason this library was created is to have a stateless coverter for serverless use. It can be used in a serverless function

Status

  • [x] Queries
  • [ ] Mutations
  • [ ] Type-casting for non-primitive types
  • [ ] Subscriptions
  • [ ] Fragments
  • [ ] Unions
  • [ ] Interfaces

Naming

Named after count Leo Tolstoy, which in Russian reads as graph Lev Tolstoy. Yandex's HQ is also located on the Tolstoy street

Details


Assets

  • lev-0.0.7.tgz

Download activity

  • Total downloads 1
  • Last 30 days 0
  • Last week 0
  • Today 0