Generate a schema.json with graphql-ruby
Asked Answered
B

1

5

How can I generate a schema.json like the code in the links?

https://github.com/exAspArk/graphql-on-rails/blob/master/schema.json https://github.com/Shopify/graphql-js-client/blob/master/schema.json

Brister answered 11/4, 2019 at 0:10 Comment(0)
B
7

Don't know if there is anyone who wants to know about this. But apparently, you can do it with GraphQL::RakeTask. I'll leave some links here as well.

https://graphql-ruby.org/api-doc/1.9.3/GraphQL/RakeTask#invoking-the-task-from-ruby https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/rake_task.rb

Brister answered 11/4, 2019 at 5:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.