Home > kibana-plugin-core-server > SavedObjectsServiceStart > createScopedRepository
Creates a Saved Objects repository that uses the credentials from the passed in request to authenticate with Elasticsearch.
Signature:
createScopedRepository: (req: KibanaRequest, extraTypes?: string[]) => ISavedObjectsRepository;
Prefer using getScopedClient
. This should only be used when using methods not exposed on SavedObjectsClientContract