Skip to content

DateArrayType? Feature request or help with PR #53

@natac13

Description

@natac13

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions