Completed
Pull Request — master (#5)
by Vitor
02:25
created

src/providers/getResumeDataProvider.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 35
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
eloc 4
nc 1
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A getResumeDataProvider.js ➔ ??? 0 33 1
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
            links {
10
                name
11
                href
12
            }
13
            intro
14
            education {
15
                name
16
                title
17
                year
18
            }
19
            experience {
20
                company
21
                location
22
                duration
23
                roles {
24
                    title
25
                    date
26
                }
27
                description
28
                tags
29
            }
30
        }
31
    }
32
`);
33
34
    return resume;
35
};
36