Skip to content

Commit

Permalink
Fix bugs on mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
bricesanchez committed Sep 7, 2018
1 parent f7911ba commit 91de8b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
2 changes: 1 addition & 1 deletion api/app/controllers/refinery/api/graphql_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Refinery
module Api
class GraphqlController < ApplicationController
class GraphqlController < ::ApplicationController
def execute
variables = ensure_hash(params[:variables])
query = params[:query]
Expand Down
24 changes: 0 additions & 24 deletions api/app/graph/refinery/api/types/date_type.rb

This file was deleted.

4 changes: 2 additions & 2 deletions api/app/graph/refinery/api/types/pages/page_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PageAttributes < Types::BaseInputObject
argument :draft, Boolean, required: false
argument :skip_to_first_child, Boolean, required: false
argument :lft, Integer, required: false
argument :rgt, required: false
argument :rgt, Integer, required: false
argument :depth, Integer, required: false
argument :view_template, String, required: false
argument :layout_template, String, required: false
Expand All @@ -28,7 +28,7 @@ class PageAttributes < Types::BaseInputObject
argument :meta_description, String, required: false
argument :browser_title, String, required: false

argument :parts, [Types::PagePart], required: false
argument :parts, [PagePartAttributes], required: false
end
end
end
Expand Down
1 change: 1 addition & 0 deletions api/app/graph/refinery/api/types/pages/page_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class PageType < GraphQL::Schema::Object
field :slug, String, null: true
field :meta_description, String, null: true
field :browser_title, String, null: true

field :parts, [PagePartType], null: true
end
end
Expand Down

0 comments on commit 91de8b6

Please sign in to comment.