Some mechanism to have the raw definition of the schema
See original GitHub issueHi guys, would be possible to expose a method or property to have the raw data like
const schemaA = new SimpleSchema({ name: { type: String }});
const definition = schemaA.definition // => return the { name: { type: String } }
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
W3C XML Schema Definition Language (XSD) 1.1 Part 2
A small collection of functions, relations, and procedures associated with the datatype. Included are equality and (for some datatypes) order ...
Read more >Schema-on-Read vs Schema-on-Write - Blog | luminousmen
Any data management system belongs to one of two types. The first one is schema-on-write. Schema-on-write. Probably a lot of you have ...
Read more >Handling schema for Power Query connectors - Microsoft Learn
The simplest approach is to hardcode a schema definition into your connector. This is sufficient for most use cases. Overall, enforcing a schema ......
Read more >Schema Definition Export and Import - RabbitMQ
Definitions are stored in an internal database and replicated across all cluster nodes. Every node in a cluster has its own replica of...
Read more >Schema Migrations and Patches - Marten
sql." Today, the migration mechanism covers: Creates any missing database schemas; Document storage tables, "upsert" functions, and any configured indexes -- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Keeping a reference to both the original schema obj and the expanded clone could increase memory consumption quite a bit. (I assume at least some of the original obj is being garbage collected right now.) If anyone implements this, it should be opt-in with a constructor option, unless you can prove that memory use is unchanged.
In the constructor it might look something like this:
Should be relatively simple, if you want to try making a PR?