-
Notifications
You must be signed in to change notification settings - Fork 2
Issue 148 connection helper #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
vsuaste
commented
Dec 9, 2020
- Modify schema and models to handle direct access to nodes in type Connection queries.
- Unit test fixed
- Added integration test
|
If you merge, please make sure that the following issues are also taken care of:
|
.testenv.json
Outdated
| "name": "gql_science_db_graphql_server1", | ||
| "template": "https://github.com/Zendro-dev/graphql-server.git", | ||
| "branch": "master", | ||
| "branch": "issue-148-connection-helper", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change it to master
.testenv.json
Outdated
| "name": "gql_science_db_graphql_server2", | ||
| "template": "https://github.com/Zendro-dev/graphql-server.git", | ||
| "branch": "master", | ||
| "branch": "issue-148-connection-helper", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change it to master
don't push package-lock.json file to master branch
| res = itHelpers.request_graph_ql_post_instance2('mutation{addSq_author(id:"remote_a2" name:"n2" addBooks:["remote_b1"]){id}}'); | ||
| expect(res.statusCode).to.equal(200); | ||
| res = itHelpers.request_graph_ql_post_instance2('mutation{addSq_author(id:"local_a2" name:"n2" addBooks:[ "local_b1"]){id}}'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add bookConnection for the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same observation as above.
| res = itHelpers.request_graph_ql_post('mutation{addAuthor(id:"remote_a1" name:"n1" addBooks:["remote_b1","remote_b2"]){id }}'); | ||
| expect(res.statusCode).to.equal(200); | ||
| res = itHelpers.request_graph_ql_post('mutation{addAuthor(id:"remote_a2" name:"n2" addBooks:["remote_b1"]){id}}'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add booksConnection for the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the test, this is only the setup for the test, which is below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the integration tests for empty foreign key arrays with "short cut access" are missing