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
Another DX improvement idea, what I have in the code now is similar to this:
createBlogListQueryQueryMock_node({parsedHeadline: createBlogListQueryQueryMock_parsedHeadline({childMarkdownRemark: createBlogListQueryQueryMock_parsedHeadline_childMarkdownRemark({html: 'This is pizza',})})})
What would be more convenient and much less verbose is if the factory function accepted a nested partial param, like
createBlogListQueryQueryMock_node({parsedHeadline: {childMarkdownRemark: {html: 'This is pizza',}}})
but currently it requires me to pass all the data necessary for the operation mock. I would need to add missing __typename and all other fields that are selected even if the example/story/test doesn't care about them.
The factories are already kinda recursive, it shouldn't require drastic changes.
Tricky cases that I anticipate:
arrays, could be ignore and keep them full-speced
unions, __typename would need to be required
The text was updated successfully, but these errors were encountered:
Another DX improvement idea, what I have in the code now is similar to this:
What would be more convenient and much less verbose is if the factory function accepted a nested partial param, like
but currently it requires me to pass all the data necessary for the operation mock. I would need to add missing
__typename
and all other fields that are selected even if the example/story/test doesn't care about them.The factories are already kinda recursive, it shouldn't require drastic changes.
Tricky cases that I anticipate:
__typename
would need to be requiredThe text was updated successfully, but these errors were encountered: