Fork me on GitHub
#graphql
<
2018-09-21
>
geraldodev19:09:38

Never used but graphql has instropection "baked in" https://graphql.org/learn/introspection/ . No need for additional libraries

lilactown20:09:03

yeah, it's just pretty raw on it's own. I was wondering if there was any libraries or examples leveraging introspection to e.g. validate queries, or validate date

lilactown20:09:10

or build other things 🙂

lilactown20:09:36

guess I'll have to do the heavy lifting of parsing the JSON into something useful

hiredman20:09:35

there are javascript libraries for it

lilactown20:09:40

well there are javascript libraries for GraphQL servers too, yet here a lot of us are using lacinia 😛 I'm not complaining, just wanted to know if anyone knew of any resources before I dove in myself

hiredman20:09:00

I have a graphql schema defined in the clojure datastructure format, and the schema I give to our frontend guys is from running https://github.com/graphql/graphql-js/blob/master/src/utilities/introspectionQuery.js against the server

hiredman20:09:04

or some combination of that query and some pretty printer from the same library

lilactown21:09:53

I'm interested in doing some tricky data validation, e.g. writing a spec that coheres with a GraphQL schema