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

Mongo DB schema-getting #30

Open
mohawk2 opened this issue Nov 17, 2018 · 1 comment
Open

Mongo DB schema-getting #30

mohawk2 opened this issue Nov 17, 2018 · 1 comment

Comments

@mohawk2
Copy link
Contributor

mohawk2 commented Nov 17, 2018

I gather the roadblock for supporting MongoDB is implementing read_schema. If so, I believe the way forward is to have the implementing method check the DB for whether there is a configured schema: https://docs.mongodb.com/manual/core/schema-validation/

If not, die. If so, just read the schema and use that. Does that accord with your thoughts?

@preaction
Copy link
Owner

I mostly concur, though I was thinking instead of die when we see something without a valid JSON schema, we read the collection names and configure them as just type => 'object'. Then people would still be able to edit the raw JSON object in the editor (indeed we could do multiple things to make that nicer, including showing the raw JSON by default and support for additionalProperties in the editor).

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

2 participants