-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hi. I was trying to see if I could create a PR for a DateArrayType but was not confident in how to go about implementing it.
I tried to create a schema as such
export const MemberCourse = {
fields: {
courseId: MongoIdType,
datesTrained: arrayOf(DateType),
nextClassId: MongoIdType,
},
};However I received an error for this part. Plus I see the way the rest of that function is written will not work either. Then I tried with formattedDate() which got the schema code to generate but the dateTrained field was using undefined in the input queries...
Would this be too much trouble to make happen?
Thanks a lot!
PS is there a different way you to go about creating a field for an array of dates? Perhaps I could just use StringArrayType and convert the string to a date upon retrieval.
Metadata
Metadata
Assignees
Labels
No labels