Skip to content

How would I use ParseServer if I inserted this custom JSON into ParseObjects in MongoDB #4534

Closed
@mginz83

Description

@mginz83

Usually, when dealing with a ParseObject from MongoDB, its a simple, well, JSON object like so.

{
 "_id": "g5Sf4GN86S",
 "name": "kevin"
}

What if I kept the _id and replaced everything else with the following JSON

[
  {
    "name": "recipe",
    "serves": "4",
    "prep_time": "10 mins",
    "cook_time": "10 mins",
    "ingredients": [
      "item 1",
      "item 2",
      "item 3"
    ],
    "cooking_instructions": [
      "Step 1",
      "Step 2"
    ],
    "nutrition_facts": [
      {
        "fact 1",
        "fact 2"
      }
    ],
    "credit": "google.com",
    "image": "http://www.website.com/image.jpg"
  }
]

Can something like this be parsed with ParseServer?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions