You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g.
DEBUG: -------------------------------
DEBUG: Ember : 3.19
DEBUG: Ember Data : 3.19
DEBUG: Firebase : 7.16.0
DEBUG: EmberFire : 3.0.0-rc.6
DEBUG: jQuery : 3.5.1
DEBUG: -------------------------------
Description
I am building an application that uses subcollections, and I received the error given in the title when trying to use store.findRecord(). A generic form of my application is someone having a catalog of albums and the songs on each album with the following structure:
users/{userId}/albums/{albumId}
/songs/{songId}
The document userId has no fields, only the two subcollections. The album document has fields with related information, including a field for the uid generated by Firebase. The song document is very similar, with the addition of a albumId field to indicate which album the song is on, creating a one-to-many relationship between an album and various songs. I use the following models for the user, album, and song:
I am attempting to create a page at index that will show the albums the user has in their library after authenticating. I use this route to try and make that query:
and use this template to see if data is coming through:
app/templates/index.hbs
<h1class="text-center mt-2">Albums</h1>
{{#each @model.albums as |album|}}
<h2>{{album.name}}</h2>
{{/each}}
When I run ember serve to try and view the data, I get the error "Error while processing route: index the adapter could not find the resource". I based this structure off of the example app given in the repository, which has a relatively similar structure. Since I cannot see the underlying Firestore structure, however, it very well could be an issue in my setup.
Steps to reproduce
Create a Firestore database with a content-owner structure as specified in my description above
Create create the above models, route, etc.
Serve the program
Expected behavior
To see a list of the album names
Actual behavior
An error with the adapter not being able to find the resources.
The text was updated successfully, but these errors were encountered:
Version info
Description
I am building an application that uses subcollections, and I received the error given in the title when trying to use store.findRecord(). A generic form of my application is someone having a catalog of albums and the songs on each album with the following structure:
The document
userId
has no fields, only the two subcollections. Thealbum
document has fields with related information, including a field for the uid generated by Firebase. Thesong
document is very similar, with the addition of aalbumId
field to indicate which album the song is on, creating a one-to-many relationship between an album and various songs. I use the following models for the user, album, and song:User Model
Album Model
Song Model
I am attempting to create a page at index that will show the albums the user has in their library after authenticating. I use this route to try and make that query:
app/routes/index.js
and use this template to see if data is coming through:
app/templates/index.hbs
When I run
ember serve
to try and view the data, I get the error "Error while processing route: index the adapter could not find the resource". I based this structure off of the example app given in the repository, which has a relatively similar structure. Since I cannot see the underlying Firestore structure, however, it very well could be an issue in my setup.Steps to reproduce
Expected behavior
To see a list of the album names
Actual behavior
An error with the adapter not being able to find the resources.
The text was updated successfully, but these errors were encountered: