peterknezek / har-to-mocks

Extract response from .har file and create JSON mocks for mock server.
MIT License
23 stars 12 forks source link

`MSW GraphQL` Requests #12

Open aaggarwal10 opened 1 year ago

aaggarwal10 commented 1 year ago

Hi again, this tool has been very helpful. I was wondering though for graphql request network traffic, it seems that since the parsing is done by request url name, only my last graphql request is mocked properly with all the previous ones being overwritten (refer to picture). Is there a possibility of being able to parse GraphQL requests to include the payload operationName that differentiates the requests? This would really help me a lot. Thanks again for all the support.

image
peterknezek commented 1 year ago

Hi, thank you, it's nice to hear. Yes, the current version of CLI supports only the REST API. For support of Graph QL, it will need some additional features. The next relese will be about tech debt, which have to by tackle befor a new features.

Yea, for sure, it will be nice to support Graph QL.