Skip to content

Commit cc4c854

Browse files
committed
fix: Add graphql-compose@2.0.0 to peerDependencies
1 parent 4e33435 commit cc4c854

File tree

3 files changed

+219
-227
lines changed

3 files changed

+219
-227
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://github.com/nodkz/graphql-compose-relay",
2424
"peerDependencies": {
25-
"graphql-compose": ">=1.20.3"
25+
"graphql-compose": ">=1.20.3 || >=2.0.0"
2626
},
2727
"devDependencies": {
2828
"babel-cli": "^6.24.1",

src/__tests__/composeWithRelay-test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ describe('composeWithRelay', () => {
4242
describe('when pass RootQuery type composer', () => {
4343
it('should add `node` field to RootQuery', () => {
4444
const nodeField = rootQueryComposer.getField('node');
45-
// $FlowFixMe
4645
expect(nodeField.type).toBeInstanceOf(GraphQLInterfaceType);
4746
// $FlowFixMe
4847
expect(nodeField.type.name).toBe('Node');
@@ -52,13 +51,11 @@ describe('composeWithRelay', () => {
5251
describe('when pass User type composer (not RootQuery)', () => {
5352
it('should add or override id field', () => {
5453
const idField = userComposer.getField('id');
55-
// $FlowFixMe
5654
expect(idField.description).toContain('globally unique ID');
5755
});
5856

5957
it('should make id field NonNull', () => {
6058
const idField = userComposer.getField('id');
61-
// $FlowFixMe
6259
expect(idField.type).toBeInstanceOf(GraphQLNonNull);
6360
});
6461

0 commit comments

Comments
 (0)