original_docstring: Service instance for records with relations.
docstring: Service instance for records with relations.
docstring_tokens: Service instance for records with relations .
code: def service_wrel(appctx):
      """Service instance for records with relations."""
  
      class ServiceConfig(ServiceConfigBase):
          """Record cls config."""
          record_cls = RecordWithRelations
          relations = {
              "records": ["metadata.inner_record"]
          }
  
          components = ServiceConfigBase.components + [
              RelationsComponent
          ]
  
      service = RecordService(ServiceConfig)
      current_service_registry.register(service, "recordwithrelations")
  
      return service
code_tokens: def service_wrel ( appctx ) : class ServiceConfig ( ServiceConfigBase ) : """Record cls config.""" record_cls = RecordWithRelations relations = { "records" : [ "metadata.inner_record" ] } components = ServiceConfigBase . components + [ RelationsComponent ] service = RecordService ( ServiceConfig ) current_service_registry . register ( service , "recordwithrelations" ) return service
short_docstring: Service instance for records with relations.
short_docstring_tokens: Service instance for records with relations .
comment: """Service instance for records with relations."""$SEP$"""Record cls config."""