-
Notifications
You must be signed in to change notification settings - Fork 440
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
Cannot get ember-data hasMany to work. #2217
Comments
It looks like this error is actually happening in mirage but I cant tell when from the information. In Mirage you defined a route, could you post what this route looks like? Also, this functionality has been extracted to MirageJS and this issue should really be opened there. https://github.com/miragejs/miragejs/issues |
@rpringadi it would really help if you could came up with minimal reproduction so we can chase the root cause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug or question
Hi!
I'm trying to get ember-data
@hasMany
, one to many relationship to work - but keep failing.Then intention:
The
scan-phase
API will return a JSON object, with manyphase
objects.If I put a debugger in the
mirage/scenarios/default.js
, mirage db seems to have a good data.But then the error happened.
Error message:
Diff from
ember-cli-mirage-boilerplate
rpringadi/ember-cli-mirage-boilerplate@b96acba
Env
ember-cli: 3.10.1
node: 14.16.1
os: darwin x64
Please advice what went wrong if possible. Thanks in advance.
If possible, please use the Mirage Boilerplate to demonstrate your issue or bug:
Visit the Ember CLI Mirage Boilerplate repo
Click Fork
Clone your fork locally, checkout a new branch, reproduce your issue and push
Link to your branch in your issue
https://github.com/rpringadi/ember-cli-mirage-boilerplate/tree/onetomanyrelationship
branch: onetomanyrelationship
The text was updated successfully, but these errors were encountered: