realm-js icon indicating copy to clipboard operation
realm-js copied to clipboard

Convert JSON schema to Realm object (schema)

Open Mooli88 opened this issue 4 years ago • 1 comments

To start with, my intention is to use Realm SDK only (no sync, no MongoDB).
I've already got a large dataset supported by JSON schema and I'd like to convert it into a Realm object schema programmatically

Goals

Being able to serialize JSON schema to Realm object schema using Realm SDK (just like Realm UI)

Expected Results

Being able to use SDK to convert JSON schema to a Realm object schema

Actual Results

This has to be done manually

Version of Realm and Tooling

  • Realm JS SDK Version: 10.2?
  • Node or React Native: 0.63?
  • Client OS & Version: Android 29?
  • Which debugger for React Native: None

Mooli88 avatar Feb 22 '21 23:02 Mooli88

@Mooli88 Is you data very structured or do you for example have object properties which can take values of different types?

At the moment, we don't have a tool which can convert a JSON schema to a Realm schema.

kneth avatar Mar 01 '21 11:03 kneth