class WCC::Contentful::Services

Public Instance Methods

graphql_schema() click to toggle source

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

@api Store

# 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