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

I have an inquiry in the resource section. #20

Open
Kir93 opened this issue Feb 2, 2021 · 0 comments
Open

I have an inquiry in the resource section. #20

Kir93 opened this issue Feb 2, 2021 · 0 comments

Comments

@Kir93
Copy link

Kir93 commented Feb 2, 2021

collection: FireStore.collection(Room),
schema: {
contents: 'string',
see: 'boolean',
uid: 'reference',
},
I am creating a resource like this right now.
However, the collection is a sub-collection, so in order to fetch data, the doc id of the parent collection is required.
I succeeded in getting the id value of the parent element through the link by query, but the element was

FireStore.collection(Chat/${chatId}/Room),
It keeps failing to switch to.
Is there a way to get the query right away?
If that doesn't work, is there any way I can help you with this?

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