drizzle-graphql icon indicating copy to clipboard operation
drizzle-graphql copied to clipboard

Deeply nested objects in querries not available

Open anthonyhoegberg opened this issue 10 months ago • 5 comments

Lets say i have multiple tables, with references like

User -> Post -> Message when querying post directly i can query fields of message as a sub object directly when querying user directly i can query fields of post as a sub object directly However when trying to access messages from the query of user like

User {
    Post {
      Message {
          data
      }
    }
}

Then in this cade the message object is not available on the post object, that is a child of user, maybe the code should reuse objects etc? i noticed that the users subtype of post and the post type directly aren't the same in studio sandbox

anthonyhoegberg avatar Apr 22 '24 06:04 anthonyhoegberg

Yes, deeply nested relations are unavailable for now, I'll implement them soon hopefully.

Sukairo-02 avatar Apr 22 '24 09:04 Sukairo-02

I'm not familiar with the codebase of drizzle but if there is something i might be able to help with i am willing to try, if this works out my company might use this based on my recommendation, I'm currently experimenting with different ORMs and drizzle is the most appealing one so far.

anthonyhoegberg avatar Apr 22 '24 23:04 anthonyhoegberg

I really need this deeply nested relations.

@Sukairo-02 Can you please tell us when we can anticipate deeply nested relations?

takshch avatar May 01 '24 01:05 takshch

@takshch well, I'll be getting right back to it after I'll be done with other project I'm currently working on, and that project is a new thing for me to do, so my apologies, but I can't even provide any reasonable estimate on time it'll take to finish other than "soon".

Sukairo-02 avatar May 01 '24 09:05 Sukairo-02

@Sukairo-02 thats fair. May be if you can write a short brief on the logic that needs to be written and the architecture of the solution. I can try contributing to this :)

sanandnarayan avatar May 01 '24 18:05 sanandnarayan

I could contribute, too, if I can. It would be an extremely useful feature

Edsol avatar May 15 '24 17:05 Edsol

They are now available - v0.7.0

Sukairo-02 avatar May 25 '24 21:05 Sukairo-02