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

is it possible to use ReferMany under EmbedOne #268

Open
npraew opened this issue Jan 16, 2021 · 0 comments
Open

is it possible to use ReferMany under EmbedOne #268

npraew opened this issue Jan 16, 2021 · 0 comments

Comments

@npraew
Copy link

npraew commented Jan 16, 2021

for example, I assume that we have 3 class

class Master extends Model {
  embed() {
    return this.embedsOne('EmbedMaster', '_id', 'embed')
  }
}

class EmbedMaster extends Model {
  refers() {
    return this.referMany('Child', '_id', 'refers')
  }
}

class Child extends Model {
}

do you have a way to insert and select all this data in efficient way? (have only 2 table, Master and Child)

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

1 participant