-
Notifications
You must be signed in to change notification settings - Fork 46
Add relationships to schema generated by CLI. #872
Comments
So just some clarification on this, if we have a model that looks something like this:
We want the schema to look somthing like this after using the cli:
|
cc @wtrocki |
We need this field in schema. We need it in types etc. |
Cool thanks for clearing that up, that definitely makes sense. Just trying to get an idea of what the target schema will look like so we can work towards that |
@wtrocki I actually think a made a bit of progress on this this evening. It's still a little bit tricky, but I think we can extract most of this information out of what is already there and add it to the final schema. Do we want this to be bi-directional? So do we want a field on the task for comments with the relationship type and foreign key too? Or is it enough for it just to exist on the comment side for example? |
This is still not working as expected, added to the MVP for the demo. |
Feature Request
Add relationships to models when generating them in the cli.
The text was updated successfully, but these errors were encountered: