feat(export): Add MongoDB BSON Schema exporter#173
Closed
Conversation
Collaborator
jdacoello
commented
Mar 9, 2026
- Introduced a new GraphQL schema for testing MongoDB BSON export with various scalar types, enums, and nested types.
- Added GeoJSON scalar type and related directives to support GeoJSON geometry in MongoDB.
- Implemented end-to-end tests for the MongoDB exporter, ensuring correct BSON schema generation and validation.
- Created unit tests for BSON type mapping, nullable handling, enum inlining, nested type inlining, list fields, directive support, and exclusion of certain types from the output.
- Ensured that GeoJSON fields are correctly represented in the BSON schema with appropriate validation for required fields and types.
ed18115 to
4e5310f
Compare
- Added support for GeoJSON geometry in MongoDB. - Introduced datatype mappings from scalars to BSON. Signed-off-by: JD Alvarez <8550265+jdacoello@users.noreply.github.com>
4e5310f to
a54ad14
Compare
…figuration - Updated the MongoDB exporter to support a new `--properties-config` option that allows users to specify which object keys should have `additionalProperties: false`. - Introduced a `load_properties_config` function to parse the YAML configuration file. - Modified the `transform` method in `MongoDBTransformer` to accept a set of keys for which `additionalProperties` should be set to false. - Updated the CLI commands to reflect changes in output file generation, including support for a `--validator` flag to wrap schemas in a MongoDB validator envelope. - Enhanced tests to cover new functionality, including validation of properties configuration and error handling for unknown types and fields. - Updated documentation to reflect changes in usage and functionality. Signed-off-by: JD Alvarez <8550265+jdacoello@users.noreply.github.com>
Collaborator
Author
|
Combined into #177 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.