graphql-kit / graphql-faker

🎲 Mock or extend your GraphQL API with faked data. No coding required.
MIT License
2.69k stars 225 forks source link

#108 Adding between date #109

Closed Robvio closed 4 years ago

Robvio commented 4 years ago

Adds the ability to specify a date range.

releaseDate: Date!
    @fake(type: betweenDate, options: { dateFormat: "YYYY-MM-DD", date1: "2020-01-01", date2: "2020-12-31" })
IvanGoncharov commented 4 years ago

@Robvio Thanks for the PR 👍 I made a few minor changes. The biggest one is that I renamed betweenDate to date since betweenDate without arguments looks strange.