#community-help

Dealing with Nullable Field in Database Schema

TLDR Andrew asked how to represent a nullable field in schema. Jason advised setting the field as optional: true.

Powered by Struct AI
+11
3
10mo
Solved
Join the chat
Nov 11, 2022 (10 months ago)
Andrew
Photo of md5-7766f890de99fa72a6d81315691a6758
Andrew
10:39 PM
I have a field, replyTo, that can be null or a String value. How do i write that in the schema? Two separate values for the replyTo field?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:39 PM
You want to set that field as optional: true in the schema
+11
Andrew
Photo of md5-7766f890de99fa72a6d81315691a6758
Andrew
10:44 PM
Ty!