Coder Social home page Coder Social logo

Support optional properties about realm-js HOT 6 CLOSED

realm avatar realm commented on July 30, 2024
Support optional properties

from realm-js.

Comments (6)

bleonard avatar bleonard commented on July 30, 2024

upon further testing, it turns out that I can't set null to a string column at all. is that expected?

from realm-js.

alazier avatar alazier commented on July 30, 2024

That is expected for the time being. Support for optional properties was just added to the core library and needs to be extended to the js binding. In the long term all properties in js will probably be optional by default, and you will be able to indicate properties with required values in the schema definition.

from realm-js.

bleonard avatar bleonard commented on July 30, 2024

That's interesting. There is no NULL in Realm?

from realm-js.

alazier avatar alazier commented on July 30, 2024

In the past NULL was only supported on object/link properties. All other property types required valued to be present. This was mostly due to optimizations in the core library. Changes in core were just finished to support NULL values for all types and work is currently being done to expose this in all of the bindings.

from realm-js.

bleonard avatar bleonard commented on July 30, 2024

ok, thanks. can i keep this open until that is fixed in the JS?

from realm-js.

alazier avatar alazier commented on July 30, 2024

Lets keep it open. Will hopefully be working on this next week.

from realm-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.