Skip to content

Commit

Permalink
Merge pull request #2993 from marmelab/fix-graphql-demo
Browse files Browse the repository at this point in the history
Fix the graphql demo
  • Loading branch information
fzaninotto committed Mar 13, 2019
2 parents 65adba1 + 9ca5001 commit 60462d9
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 146 deletions.
2 changes: 1 addition & 1 deletion examples/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"data-generator": "^2.4.0",
"fakerest": "~2.1.0",
"fetch-mock": "~6.3.0",
"json-graphql-server": "~2.1.1",
"json-graphql-server": "~2.1.3",
"ra-data-fakerest": "^2.0.0",
"ra-data-graphql-simple": "^2.0.0",
"ra-data-simple-rest": "^2.0.0",
Expand Down
3 changes: 3 additions & 0 deletions examples/demo/src/dataProvider/graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export default () => {
case 'reviews':
return 'Review';

case 'invoices':
return 'Invoice';

default:
throw new Error(`Unknown resource ${resource}`);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-graphcool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"dependencies": {
"graphql-ast-types-browser": "~1.0.2",
"graphql-tag": "^2.6.1",
"graphql-tag": "^2.10.1",
"lodash": "~4.17.5",
"pluralize": "~7.0.0",
"ra-data-graphql": "^2.6.0"
Expand All @@ -45,7 +45,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"graphql": "^0.13.2",
"graphql": "^14.1.1",
"rimraf": "^2.6.2"
}
}
4 changes: 2 additions & 2 deletions packages/ra-data-graphql-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"graphql-ast-types-browser": "~1.0.2",
"graphql-tag": "^2.6.1",
"graphql-tag": "^2.10.1",
"lodash": "~4.17.5",
"pluralize": "~7.0.0",
"ra-data-graphql": "^2.6.0"
Expand All @@ -44,7 +44,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"graphql": "^0.13.2",
"graphql": "^14.1.1",
"rimraf": "^2.6.2"
}
}
8 changes: 4 additions & 4 deletions packages/ra-data-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"watch": "rimraf ./lib && tsc --watch"
},
"dependencies": {
"apollo-client": "^2.2.8",
"apollo-client-preset": "^1.0.6",
"graphql-tag": "^2.6.1",
"apollo-client": "^2.5.1",
"apollo-client-preset": "^1.0.8",
"graphql-tag": "^2.10.1",
"lodash": "~4.17.5",
"pluralize": "~7.0.0"
},
Expand All @@ -44,7 +44,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"graphql": "^0.13.2",
"graphql": "^14.1.1",
"rimraf": "^2.6.2"
}
}
Loading

0 comments on commit 60462d9

Please sign in to comment.