We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is a how to query. Apologies if this is not the right place to post queries:
how to query
book: &book id: ${sequence.number} title: ${faker.book.title} publishedAt: &anchor_val2 ${faker.date.between('2000-01-01', '2010-01-01')} author: id: ${sequence.number} policies: id1: id: ${sequence.number} title: ${faker.book.title} publishedAt: *anchor_val2 id2: id: ${sequence.number} title: ${faker.book.title} publishedAt: ${current.date}
Using yaml anchors here, publishedAt: *anchor_val2 generates new ${faker.date.between('2000-01-01', '2010-01-01')}
publishedAt: *anchor_val2
${faker.date.between('2000-01-01', '2010-01-01')}
Is there a way I can reference (reuse) the data generated in publishedAt: &anchor_val2 ${faker.date.between('2000-01-01', '2010-01-01')}
publishedAt: &anchor_val2 ${faker.date.between('2000-01-01', '2010-01-01')}
The text was updated successfully, but these errors were encountered:
It's not possible currently. Even if publishedAt of book is inherited, it generates new faker value.
You should use post processor (https://github.com/keepcosmos/beanmother#register-postprocessors)
Sorry, something went wrong.
@keepcosmos Thanks
No branches or pull requests
This is a
how to query
. Apologies if this is not the right place to post queries:Using yaml anchors here,
publishedAt: *anchor_val2
generates new${faker.date.between('2000-01-01', '2010-01-01')}
Is there a way I can reference (reuse) the data generated in
publishedAt: &anchor_val2 ${faker.date.between('2000-01-01', '2010-01-01')}
The text was updated successfully, but these errors were encountered: