debian-mirror-gitlab/app/assets/javascripts/pipeline_editor/graphql/resolvers.js
2021-01-29 00:20:46 +05:30

16 lines
330 B
JavaScript

import Api from '~/api';
export const resolvers = {
Query: {
blobContent(_, { projectPath, path, ref }) {
return {
__typename: 'BlobContent',
rawData: Api.getRawFile(projectPath, path, { ref }).then(({ data }) => {
return data;
}),
};
},
},
};
export default resolvers;