Open adamlesniak opened 11 months ago
dateInRange
string
word
Example usage:
type Employee { id: ID firstName: String @fake(type: firstName, locale: en_CA) lastName: String @fake(type: lastName, locale: en_CA) address: String @fake(type: streetAddress, options: { useFullAddress: true }) subordinates: [Employee!] @listLength(min: 0, max: 3) company: Company workDates: [String!] @fake( type: dateInRange options: { dateFrom: "2023-11-05T16:56:52.372Z" dateTo: "2023-11-15T16:56:52.372Z", dateFormat: "YYYY-MM-DD" } ) }
{ employee(id: "test") { workDates } }
{ "data": { "employee": { "workDates": [ "2023-11-05", "2023-11-06", "2023-11-07", "2023-11-08", "2023-11-09", "2023-11-10", "2023-11-11", "2023-11-12", "2023-11-13", "2023-11-14" ] } } }
dateInRange
fake - this allows developer to customize the returned date.string
to reflect fakerword
.Example usage: