Class: WCC::Contentful::Services

Inherits:
Object
  • Object
show all
Defined in:
lib/wcc/contentful/ext/services.rb

Instance Method Summary collapse

Instance Method Details

#graphql_schemaObject

A GraphQL schema that will query Contentful using your configured store.



8
9
10
11
12
13
14
15
16
# File 'lib/wcc/contentful/ext/services.rb', line 8

def graphql_schema
  @graphql_schema ||=
    ensure_configured do |_config|
      WCC::Contentful::Graphql::Builder.new(
        WCC::Contentful.types,
        store
      ).build_schema
    end
end