forked from ethereumclassic/ethereumclassic.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-node.js
38 lines (36 loc) · 817 Bytes
/
gatsby-node.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
exports.createSchemaCustomization = ({ actions }) => {
const { createTypes } = actions;
const typeDefs = `
type NewsItem implements Node {
id: String!
date: Date!
locale: String!
author: String
source: String
link: String!
title: String!
newsType: String!
}
type ServicesAppsCollection implements Node {
title: String!
links: [AppLinks]
author: String
authorLink: String
description: String!
type: String!
date: Date!
verifiedContract: String
openSource: String
audit: String
testSuite: String
ipfsFrontend: String
image: File @fileByRelativePath
}
type AppLinks {
name: String
link: String
icon: String
}
`;
createTypes(typeDefs);
};