Welcome to mirror list, hosted at ThFree Co, Russian Federation.

file.js « resolvers « graphql « static_site_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 16f176581cb5a7f501c12f3dcd74d9165a3b7a88 (plain)
1
2
3
4
5
6
7
8
9
10
11
import loadSourceContent from '../../services/load_source_content';

const fileResolver = ({ fullPath: projectId }, { path: sourcePath }) => {
  return loadSourceContent({ projectId, sourcePath }).then(sourceContent => ({
    // eslint-disable-next-line @gitlab/require-i18n-strings
    __typename: 'File',
    ...sourceContent,
  }));
};

export default fileResolver;