Skip to content

Commit

Permalink
Adds a note about the graphiql
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Nov 13, 2017
1 parent 113a477 commit efb2180
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ easy as:
$ foreman start
```

See the Procfile for more.
See the Procfile to understand other services launched.

## API

When running in development, this API has a GraphiQL instance at http://localhost:5000/graphiql

## Creating a Submission

Expand Down
1 change: 0 additions & 1 deletion app/graph/types/query_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Types
description 'Find Submissions'
argument :ids, types[types.ID]
argument :id, types.ID
argument :completed, types.Boolean

resolve ->(_object, args, _context) {
args[:ids] ? Submission.where(id: args[:ids]) : [Submission.find(args[:id])]
Expand Down

0 comments on commit efb2180

Please sign in to comment.