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: fc3cac52e2aec2f1eecc43f9ffb188de127e045c (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;