Merged
Conversation
coeit
reviewed
Aug 4, 2022
coeit
reviewed
Aug 4, 2022
coeit
reviewed
Aug 4, 2022
coeit
reviewed
Aug 4, 2022
coeit
reviewed
Aug 4, 2022
setup_data_scheme.md
Outdated
| *targetKey* | String | A unique identifier of the association stored in any of the two models involved in the association. And it could be an array for to-many associations. | ||
| *keysIn* | String | Name of the model where the targetKey is stored. | ||
|
|
||
| Example: |
Member
There was a problem hiding this comment.
add reverese data model definition
coeit
reviewed
Aug 4, 2022
setup_data_scheme.md
Outdated
| *targetKey* | String | Attribute belonging to target model, which stores the associated ids of source model. And it could be an array for to-many associations. | ||
| *keysIn* | String | Name of the model where the sourceKey is stored. | ||
|
|
||
| Example: |
Member
There was a problem hiding this comment.
- add example for many-to-one / one-to-many paired-end assoc
- add comments like in the single-end assoc example, especially for targetKey, sourceKey, keysIn
coeit
reviewed
Aug 4, 2022
| *implementation* | 'sql_cross_table' | Set the `implementation` field to 'sql_cross_table' | ||
| When the association is of type *many_to_many* and it refers to a more particular type of association *many_to_many*, stored in a cross table, the `implementation` argument should be set as `to_many_through_sql_cross_table` and it's only available for `sql` stored models. | ||
|
|
||
| Example: |
Member
There was a problem hiding this comment.
add comments like in the above examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes Zendro-dev/graphql-server-model-codegen#185