Skip to content

Conversation

superphil0
Copy link

This allows users to generate schemas for subcollections that appear across multiple parent documents by using collection group queries instead of regular collection queries.

This loosely follows the pattern of the import script by adding the same flag --query-collection-group

I did test this on my own production DB, so works for my purposes

  • Add --query-collection-group flag to gen-schema-view script
  • Support both regular collection and collection group queries in Gemini schema generation
  • Update sampleFirestoreDocuments function with isCollectionGroupQuery parameter
  • Add interactive prompt for collection group query selection
  • Update documentation with examples and explanations
  • Add comprehensive test coverage for new functionality
  • Maintain backward compatibility with existing functionality

Feature request here: #2516

- Add --is-collection-group-query flag to gen-schema-view script
- Support both regular collection and collection group queries in Gemini schema generation
- Update sampleFirestoreDocuments function with isCollectionGroupQuery parameter
- Add interactive prompt for collection group query selection
- Update documentation with examples and explanations
- Add comprehensive test coverage for new functionality
- Maintain backward compatibility with existing functionality

This allows users to generate schemas for subcollections that appear across
multiple parent documents by using collection group queries instead of
regular collection queries.
- Update command line flag from --is-collection-group-query to --query-collection-group
- Update all documentation and examples with new flag name
- Update tests to use new flag name
- Maintain same functionality with cleaner flag naming

This provides a more concise and intuitive flag name for collection group queries.
@HassanBahati
Copy link
Member

Hi @superphil0, thank you for opening this Pull Request. We will review and provide feedback. Thanks!

@HassanBahati HassanBahati added type: feature request New feature or request extension: firestore-bigquery-export Related to firestore-bigquery-export extension labels Sep 2, 2025
@cabljac cabljac self-requested a review September 9, 2025 10:35
Copy link
Contributor

@cabljac cabljac left a comment

Choose a reason for hiding this comment

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

Can you remove the local dependency on the change tracker

@github-project-automation github-project-automation bot moved this to Changes Requested [PR] in [Cloud] Extensions + Functions Sep 9, 2025
@superphil0
Copy link
Author

Can you remove the local dependency on the change tracker

done

@cabljac cabljac self-requested a review September 16, 2025 13:51
@HassanBahati HassanBahati self-requested a review September 19, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension: firestore-bigquery-export Related to firestore-bigquery-export extension type: feature request New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants