Passed
Pull Request — master (#5)
by Vitor
02:29
created

src/providers/getResumeDataProvider.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 44
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
mnd 0
bc 0
fnc 1
dl 0
loc 44
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getResumeDataProvider = () => {
4
  const { resume } = useStaticQuery(graphql`
5
    {
6
        resume: dataYaml(slug: {eq: "resume"}) {
7
            title
8
            subtitle
9
            summary
10
            links {
11
                name
12
                href
13
            }
14
            education {
15
                institution
16
                area
17
                studyType
18
                years
19
            }
20
            work {
21
                company
22
                location
23
                duration
24
                positions {
25
                    position
26
                    date
27
                }
28
                summary
29
                tags
30
            }
31
            skills {
32
                name
33
                level
34
            }
35
            languages {
36
                language
37
                fluency
38
            }
39
        }
40
    }
41
`);
42
43
  return resume;
44
};
45