Skip to content

Commit f6bad99

Browse files
authored
Create rails-graphql.md
1 parent 93ce66b commit f6bad99

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Rails GraphQL
3+
description: A Fresh new GraphQL server for Rails applications, with a focus on natural and Ruby-like DSL
4+
url: https://www.rails-graphql.dev/
5+
github: virtualshield/rails-graphql
6+
gem: rails-graphql
7+
---
8+
9+
```ruby
10+
require 'rails-graphql'
11+
12+
class GraphQL::AppSchema < GraphQL::Schema
13+
query_fields do
14+
field(:hello).resolve { 'Hello World!' }
15+
end
16+
end
17+
18+
puts GraphQL::AppSchema.execute('{ hello }')
19+
```
20+
21+
Less is more! Please check it out the [docs](https://www.rails-graphql.dev/?utm_source=graphql_org).

0 commit comments

Comments
 (0)