Fork me on GitHub

I'm using lacinia-pedestal on server and re-graph on client


however while connecting from client I'm getting following error message xhrio.js:627 OPTIONS 404 (Not Found)


my client code to connect server


But i query using curl it works


i also see cors errors


Now i have added cors in the server and added headers in client but still getting error Failed to parse GraphQL query


Currently I am working on sending mock data to the front end for consumption using graphql, but I want to validate the data before having it available for consumption using the provided graphql schema. How do you hook up graphql schema with specs to validate?


@raul.guajardo did you check: i think it's exactly what you need.


oh, I forgot to put, no third part libraries in the post


If licensing is a concern, Serene is EPL (same as Clojure). If licensing is not a concern, what kind of solution were you thinking of if not a library?


I think I figured it out, it was mostly constraints in regards to the project, we want to be minimal with the amount of third party libraries we consume. I was overthinking the kind of tests required in this case. I wanted to validate the data completely(to be thorough), but after discussion we decided we just need to check if the keys specified in the schema exist in the mocked data. Thanks though 😄