{"repo":"Blitzapps/blitz-orm","free":true,"listed":false,"github":"https://github.com/Blitzapps/blitz-orm","clone":"git clone https://github.com/Blitzapps/blitz-orm.git","description":null,"language":"TypeScript","stars":27,"topics":["database","graph-database","orm"],"license":"AGPL-3.0","category":"databases-storage","readme_excerpt":"Blitz-orm Blitz-orm is an Object Relational Mapper (ORM) for graph databases that uses a JSON query language called Blitz Query Language (BQL). BQL is similar to GraphQL but uses JSON instead of strings. This makes it easier to build dynamic queries. Blitz-orm is similar to other ORM packages such as Prisma. You define a BQL schema and it gets translated to different databases (currently only compatible with TypeDB and SurrealDB). Compatibility TypeDB - Schema (working with issues) - Queries (stable) - Mutations (some issues) SurrealDB - Schema (to-do) - Queries (stable) - Mutations (some issues) MultiDB - Basic queries work and are correctly routed to different databases - Nested queries with references to different dbs are not supported yet Next-auth - Fully compatible with next-auth (Auth.js) but we need to publish the adapter How to Use 1. Install the package using your package manager, for example: yarn add @blitznocode/blitz-orm 2. Create a Borm schema. You can find an example in the test folder. 3. The borm.define() function is currently not working, so you will need to manually translate your BQL schema into a TypeQL schema (an example can be found in the test folder). 4. Create a configuration file with the database name that you have created in TypeDB. 5. Initialize Blitz-orm in a file like this: 6. You can then run queries and mutations like this: Gotchas 1) There is no borm.define() method yet. This means you will need to translate your borm schema into typeQL sch","default_branch":null,"files":null,"tree":[],"storefront":"/r/Blitzapps","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Blitzapps/blitz-orm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}