Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deeply nested objects in querries not available #4

Closed
anthonyhoegberg opened this issue Apr 22, 2024 · 7 comments
Closed

Deeply nested objects in querries not available #4

anthonyhoegberg opened this issue Apr 22, 2024 · 7 comments
Assignees

Comments

@anthonyhoegberg
Copy link

anthonyhoegberg commented Apr 22, 2024

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

@Sukairo-02
Copy link
Collaborator

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

@Sukairo-02 Sukairo-02 self-assigned this Apr 22, 2024
@anthonyhoegberg
Copy link
Author

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.

@takshch
Copy link

takshch commented May 1, 2024

I really need this deeply nested relations.

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

@Sukairo-02
Copy link
Collaborator

@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".

@sanandnarayan
Copy link

@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 :)

@Edsol
Copy link
Contributor

Edsol commented May 15, 2024

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

@Sukairo-02
Copy link
Collaborator

They are now available - v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants