Skip to content

Commit 78f4062

Browse files
committed
Small fixes
1 parent 1beb5fd commit 78f4062

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"homepage": "https://github.com/nodkz/graphql-compose-connection",
2525
"peerDependencies": {
26-
"graphql-compose": ">=0.0.6",
27-
"graphql": ">=0.5.0"
26+
"graphql": ">=0.5.0 || >=0.6.0",
27+
"graphql-compose": ">=0.0.6 || >=1.0.0"
2828
},
2929
"devDependencies": {
3030
"babel-cli": "6.10.1",

src/__tests__/composeWithConnection-test.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
graphql,
1010
GraphQLSchema,
1111
} from 'graphql';
12-
import projection from 'graphql-compose/lib/projection';
1312

1413

1514
describe('composeWithRelay', () => {
@@ -172,11 +171,11 @@ describe('composeWithRelay', () => {
172171
});
173172

174173
describe('projection()', () => {
175-
it.only('should return object', async () => {
174+
it('should return object', async () => {
176175
// const resolver = userTypeComposer.getResolver('connection');
177176
// const resolve = resolver.resolve;
178177
// resolver.resolve = (resolveParams) => {
179-
// const pr = projection(resolveParams.info);
178+
// const pr = getProjectionFromAST(resolveParams.info);
180179
// console.log(pr);
181180
// resolve(resolveParams);
182181
// };
@@ -216,7 +215,7 @@ describe('composeWithRelay', () => {
216215
}
217216
`;
218217
const result = await graphql(schema, query);
219-
// console.log(result.data.userConnection.edges);
220-
})
218+
console.log(result.data.userConnection.edges);
219+
});
221220
});
222221
});

0 commit comments

Comments
 (0)