Skip to content
/ lev Public

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

Notifications You must be signed in to change notification settings

esseswann/lev

Repository files navigation

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

  • 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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages