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

Implement configurable data relations between models. #3222

Closed
jsakalos opened this issue Jul 26, 2021 · 3 comments
Closed

Implement configurable data relations between models. #3222

jsakalos opened this issue Jul 26, 2021 · 3 comments
Assignees
Labels
feature request forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@jsakalos
Copy link

Requested here:

Forum post

Hi team,
I have data as below:

  "newarray": [
                  {
                    "id": 1,
                    "from": "PHO",
                    "to": "MNL",
                  },
                  {
                    "id": 2,
                    "from": "MNL",
                    "to": "AHM"
                  }
                ]       
         

MicrosoftTeams-image (20).png

How i can create a store just like baselines in the above screenshot
MicrosoftTeams-image (20).png

@jsakalos jsakalos added feature request forum Issues from forum labels Jul 26, 2021
@isglass
Copy link
Contributor

isglass commented Jul 27, 2021

There is a relation system but it is fully private, ticket should probably be repurposed to document it and make it public

@pmiklashevych
Copy link

+1 for making it public

@pmiklashevych
Copy link

Please implement this for Model. I have lots of related models. For example, I have Groups store, which looks like:

// Groups Store
[{
  id : 1,
  title : 'Forwards',
  // Players Store
  players: [
    { id : 1, name : 'Kylian Mbappe' } ,
    { id : 2, name : 'Lionel Messi' },
    { id : 3, name : 'Neymar' }
  ],
}]

So it's obvious there is a Players store holding info of all players, and there is a Groups store, which organises players in some groups, for example forwards. Every group has "players" field which would be nice to have turned into a Store of Records instead of simple array of objects.

@isglass isglass self-assigned this Jan 13, 2023
@isglass isglass added in progress resolved Fixed but not yet released (available in the nightly builds) and removed in progress labels Jan 13, 2023
@isglass isglass added this to the 5.3.0-beta-2 milestone Jan 19, 2023
@SergeyMaltsev SergeyMaltsev modified the milestones: 5.3.0-beta-2, 5.3.0 Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request forum Issues from forum resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

4 participants