Skip to content

Access mongo create schema in parse #4458

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

Closed
grosscorporation opened this issue Dec 25, 2017 · 3 comments
Closed

Access mongo create schema in parse #4458

grosscorporation opened this issue Dec 25, 2017 · 3 comments

Comments

@grosscorporation
Copy link

We use GitHub Issues for bugs.

If you have a non-bug question, ask on Stack Overflow or Server Fault:

If you have a vulnerability disclosure, please follow our policy available here https://github.com/parse-community/parse-server/blob/master/SECURITY.md

You may also search through existing issues before opening a new one: https://github.com/parse-community/parse-server/issues?utf8=%E2%9C%93&q=is%3Aissue

--- Please use this template. If you don't use this template, your issue may be closed without comment. ---

Issue Description

I am drynamically creating schema in mongodb and want it to show in parse, but it won't

Steps to reproduce

here is an example of how I create my schema:

db.createCollection ( "invoices", { capped : false, autoIndexId : true, //max : 0, validationLevel : "strict", validator : { $jsonSchema : { bsonType : "object", required : [ "customer", "company", "user", "date", "dateDue", "status", "terms" ] } } } );

Expected Results

I expect to have the schema showing in Parse and dashboard

Actual Outcome

Nothing shows dispite it showing in the mongodb collection list

Environment Setup

  • Server

    • parse-server version (Be specific! Don't say 'latest'.) : 1.11
    • Operating System: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): AWS
  • Database

    • MongoDB version: 3.4.7
    • Storage engine: [FILL THIS OUT]
    • Hardware: [FILL THIS OUT]
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): AWS

Logs/Trace

Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment.

@grosscorporation grosscorporation changed the title Access Access mongo create schema in parse Dec 25, 2017
@flovilmart
Copy link
Contributor

You should either create your collections through the parse API, or alter the _SCHEMA table to reflect your collection and fields. I would not recommend the latter as you may render your collection invalid.

@grosscorporation
Copy link
Author

I think parse needs to allow pluggable mongodb transactional queries that would ease development and speed up apps. For example, increment document column field, with each entry, these are readily available features, and it would be great to implement these, Parse side,

@flovilmart
Copy link
Contributor

I’m not sure what you mean by that, but feel free to open a pull request/proposal. Mongodb doesn’t support transactions and if you’re referring to stored functions, that would entice a large refactoring which we’re not likely to take on.

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