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
I am using Hasura for a project, and using some node services to run some business code that executes queries and mutation on Hasura.
I would like to unit test my APIs and services, but I would like to avoid setting up a whole Hasura and Postgres instances in the pipeline, migrating and seeding the DB etc. to then run the unit test. What I would prefer is just to have some mocked Hasura endpoint that returns some random data.
I am really struggling to find a solution to this. I was extremely happy to find json-graphql-server that does exactly what I need, the problem is that it is generating a GraphQL schema that is fairly different from the one used by Hasura, so all my queries fail.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good morning,
I am using Hasura for a project, and using some node services to run some business code that executes queries and mutation on Hasura.
I would like to unit test my APIs and services, but I would like to avoid setting up a whole Hasura and Postgres instances in the pipeline, migrating and seeding the DB etc. to then run the unit test. What I would prefer is just to have some mocked Hasura endpoint that returns some random data.
I am really struggling to find a solution to this. I was extremely happy to find json-graphql-server that does exactly what I need, the problem is that it is generating a GraphQL schema that is fairly different from the one used by Hasura, so all my queries fail.
Do you have a suggestion on how to do this?
Beta Was this translation helpful? Give feedback.
All reactions