pact-python icon indicating copy to clipboard operation
pact-python copied to clipboard

Add GraphQL support

Open ivanmikhalka opened this issue 2 years ago • 3 comments

Hello, I am interested in adding GraphQL support in Python implementation. How much effort it could take to implement?

ivanmikhalka avatar Feb 07 '23 11:02 ivanmikhalka

Maybe not too much? You can treat graphql requests as post requests that pass in {"query": query, "variables": variables} into the data during the request in a pact.

Maybe it just needs a simple wrapper but I currently write graphql pacts using the above

duzumaki avatar Feb 07 '23 15:02 duzumaki

Thank you @duzumaki, it can be an option. What about that case when GET GraphQL request need to be processed?

ivanmikhalka avatar Feb 08 '23 09:02 ivanmikhalka

This issue has been linked to a Canny post: Add GraphQL support for Pact Python implementation :tada:

canny[bot] avatar Aug 03 '23 11:08 canny[bot]