Skip to content

Drift generator file formatting issue #2686

Answered by simolus3
pasaneramusugoda asked this question in Q&A
Discussion options

You must be logged in to vote

First of all, I would like to thank you for the wonderful package that you provided. It helps us to implement complex relational data structures for our systems.

I'm happy to hear that, thanks!

Would like to know any fixes

It looks like you can apply a workaround by calling join multiple times and never putting more than one item in the list:

.from(stockInRequests).join([
        innerJoin(
          products,
          products.id.equalsExp(stockInRequests.productId),
        ),
]).join([
        innerJoin(
          divisions,
          divisions.id.equalsExp(stockInRequests.divisionId),
        ),
]).join
 ...

where to look to debug the code to fix and make a PR.

A contribution w…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pasaneramusugoda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants