Skip to content

Update Test for Issue 376 to Produce Error#403

Open
brianlenz wants to merge 1 commit intographql-compose:masterfrom
SocialStrata:addRelation_findOne_broken_test
Open

Update Test for Issue 376 to Produce Error#403
brianlenz wants to merge 1 commit intographql-compose:masterfrom
SocialStrata:addRelation_findOne_broken_test

Conversation

@brianlenz
Copy link
Copy Markdown

  • Updated the test case for issue 376 so that it exposes at least one scenario where this error is occurring. I restructured the schema a bit and added further typings to mirror the schema I have been testing with.

  • Apparently the projection is added in some simple cases with findMany(), but when using findOne() (at a minimum), it appears to not work. There are now two tests: the first one fails (with findOne(), and the second one succeeds (with findMany()).

  • Updated to graphql-compose 9.0.8 to ensure testing is against the latest version.

#376
graphql-compose/graphql-compose#382

* Updated the test case for issue 376 so that it exposes at least one scenario where this error is occurring. I restructured the schema a bit and added further typings to mirror the schema I have been testing with.

* Apparently the projection is added in some simple cases with findMany(), but when using findOne() (at a minimum), it appears to not work. There are now two tests: the first one fails (with findOne(), and the second one succeeds (with findMany()).

* Updated to graphql-compose 9.0.8 to ensure testing is against the latest version.

graphql-compose#376
graphql-compose/graphql-compose#382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant