gitlab-org--gitlab-foss/app/assets/javascripts/pipeline_editor/graphql/resolvers.js

17 lines
330 B
JavaScript
Raw Normal View History

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;