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

Support Batch Document Get #3

Merged
merged 3 commits into from
Aug 4, 2024
Merged

Support Batch Document Get #3

merged 3 commits into from
Aug 4, 2024

Conversation

MajdSehwail
Copy link
Member

@MajdSehwail MajdSehwail commented Jul 24, 2024

Note that this requires the project's URL in the config to be changed from projects/xxx/databases/(default)/documents to projects/xxx/databases/(default)

Firestore.Decoder.decode(response)
end
end

def batch_get_documents(document_paths, params \\ []) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document_ids or document_tokens

…g it inside the repo method.

- Include the path for each document since the order of the response isn't guaranteed to match the input.
- Since we include each path for each requested document, it's better not to filter out missing documents. Include them with value `nil` for document.
- Fix the capability of passing body params
@MajdSehwail MajdSehwail merged commit 53a8faa into master Aug 4, 2024
1 check passed
@MajdSehwail MajdSehwail deleted the batch-get branch August 4, 2024 09:27
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

Successfully merging this pull request may close these issues.

2 participants