Skip to content

Commit

Permalink
Require ostruct so that it is there all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
netikular committed Aug 6, 2024
1 parent 90e11c4 commit 80ef967
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/dato_cms_graphql/base_query.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require_relative "model_iterator"
require "ostruct"

module DatoCmsGraphql
class BaseQuery
Expand Down Expand Up @@ -66,7 +67,7 @@ def query_for

parse <<~GRAPHQL
query($skip: IntType) {
#{localized_items.join("\n")}
#{localized_items.join("\n")}
}
GRAPHQL
end
Expand All @@ -88,7 +89,7 @@ def query_for_single

parse <<~GRAPHQL
query {
#{localized_item.join("\n")}
#{localized_item.join("\n")}
}
GRAPHQL
end
Expand Down

0 comments on commit 80ef967

Please sign in to comment.