Blitzapps / blitz-orm

GNU Affero General Public License v3.0
23 stars 9 forks source link

When do you plan to complete BQL schema generator feature #23

Closed burakakca closed 10 months ago

burakakca commented 11 months ago

Hi,

When do you plan to complete BQL schema generator feature

lveillard commented 11 months ago

Hey! Borm.define() works at the moment to create a typeQL schema from the json BQL schema, but you will probably need to do some tweaks.

However it works on that side BQL => typeQL

The idea is that in the future you will be able to do BQL => graphQL & BQL => dgraph schema etc

Feel free to share your input schema / issues with the output schema if needed

burakakca commented 11 months ago

I thing we need both,

BQL to TypeQL and TypeQL to BQL

lveillard commented 11 months ago

BQL is more expressive than typeQL (with exception) and also enforces some particular patterns to enable the graphQL-like layer. So the task to infer automatically the BQL schema from a typeQL schema is a bit complicated.

A task that an AI should be able to do tho, by providing for instance the testSchema.ts and the schema.tql in the /test folder as an example.

Happy to help if you have a particular schema that you would like to build and test in BQL

On Tue, Oct 31, 2023 at 4:28 PM Burak Akça @.***> wrote:

I thing we need both,

BQL to TypeQL and TypeQL to BQL

— Reply to this email directly, view it on GitHub https://github.com/Blitzapps/blitz-orm/issues/23#issuecomment-1787453931, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHAYUVGUQH7LPRWORT744HDYCEKLHAVCNFSM6AAAAAA6PSCB62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBXGQ2TGOJTGE . You are receiving this because you commented.Message ID: @.***>

burakakca commented 11 months ago

I don't have it particular typeQL schema, maybe you can show, how you gonna do that BQL schema from a typeQL schema

lveillard commented 10 months ago

I don't have it particular typeQL schema, maybe you can show, how you gonna do that BQL schema from a typeQL schema

I was proposing do do it manually. if you have a particular use case that you could share, I could build a draft borm schema for the use case so you can see an example.