DateArrayType? Feature request or help with PR
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.~~
So from the #21 Issue, I am looking over the #23 PR and was wondering if this could be done with graphql-iso-date? Then using the same DateTime type create a DateTimeArrayType that your project is looking for?
Or is this to much overlap with the DateType and formattedDate() you already have.
After looking over your project I am very intrigued by the idea of auto generating the bulk of the graphql data. Plus I have learn how very wrong I did my own graphql endpoint.... Which is learning material for next time! Which I am exploring now with your project. Just getting hung up with the array of dates and trying to figure out how to do custom stuff.
Thanks again