Skip to content

Commit 8014a34

Browse files
committed
renamed resources type to use the .graphql extension
1 parent 155b94c commit 8014a34

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/lambda/types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { mergeTypes } = require('merge-graphql-schemas');
2-
const resourceType = require('../types/resources');
2+
const resourceType = require('../types/resources.graphql');
33

44
const types = [resourceType];
55

src/lambda/types/resources.js renamed to src/lambda/types/resources.graphql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const resourceType = `
21
type Query {
32
resources: [Resource]!
43
resource(id: ID!): Resource
@@ -16,5 +15,3 @@ type Resource {
1615
modified: String
1716
type: String
1817
}
19-
`
20-
module.exports = resourceType

0 commit comments

Comments
 (0)