Skip to content

Commit b22b3cf

Browse files
author
askbeka
committed
asd
1 parent 0553ed0 commit b22b3cf

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

.graphqlconfig.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
projects:
2+
app:
3+
schemaPath: src/schema.graphql
4+
extensions:
5+
endpoints:
6+
default: http://localhost:4000

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"license": "MIT",
66
"dependencies": {
77
"forever": "^0.15.3",
8+
"graphql-tag": "^2.10.0",
89
"graphql-yoga": "^1.16.7"
910
},
1011
"scripts": {

src/query.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
const gql = require('graphql-tag');
3+
4+
gql`
5+
{
6+
accounts {
7+
name,
8+
sent {
9+
10+
}
11+
}
12+
}
13+
`

src/resolvers.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
12
module.exports = {
2-
}
3+
4+
};

yarn.lock

+5
Original file line numberDiff line numberDiff line change
@@ -1117,6 +1117,11 @@ graphql-subscriptions@^0.5.8:
11171117
dependencies:
11181118
iterall "^1.2.1"
11191119

1120+
graphql-tag@^2.10.0:
1121+
version "2.10.0"
1122+
resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.10.0.tgz#87da024be863e357551b2b8700e496ee2d4353ae"
1123+
integrity sha512-9FD6cw976TLLf9WYIUPCaaTpniawIjHWZSwIRZSjrfufJamcXbVVYfN2TWvJYbw0Xf2JjYbl1/f2+wDnBVw3/w==
1124+
11201125
graphql-tools@^4.0.0, graphql-tools@^4.0.1:
11211126
version "4.0.3"
11221127
resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.3.tgz#23b5cb52c519212b1b2e4630a361464396ad264b"

0 commit comments

Comments
 (0)