You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we have a documentation page around mocking fields/entities that aren't implemented yet, we could take this further by integrating faker.js we could make this as easy as adding { mock: 'phoneNumber' } or something similar which would mock the value when there isn't one present on the payload.
Proposed Solution
We extend the pothos field builder API with a mock option that integrates faker, when no value is present we invoke the faker method and mock the value.
The text was updated successfully, but these errors were encountered:
Summary
Currently we have a documentation page around mocking fields/entities that aren't implemented yet, we could take this further by integrating
faker.js
we could make this as easy as adding{ mock: 'phoneNumber' }
or something similar which would mock the value when there isn't one present on the payload.Proposed Solution
We extend the
pothos
field builder API with amock
option that integratesfaker
, when no value is present we invoke thefaker
method and mock the value.The text was updated successfully, but these errors were encountered: