-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: add optional fields #10150
feat: add optional fields #10150
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
🦋 Changeset detectedLatest commit: fbbe385 The changes in this PR will be included in the next version bump. This PR includes changesets to release 65 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CC @shahednasser for documentation. You can now make fields optional using DML using the model.define('Product', {
title: model.string(),
handle: model.string().optional()
}) How is it different from
|
This reverts commit 661ea78.
Optional fields are precursor to the
default
value. Since it doesn't make sense to assign a default value, unless the field is marked as optional.Fixes: FRMW-2786