graphql-compose-mongoose icon indicating copy to clipboard operation
graphql-compose-mongoose copied to clipboard

Update Test for Issue 376 to Produce Error

Open brianlenz opened this issue 2 years ago • 0 comments

  • 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.

https://github.com/graphql-compose/graphql-compose-mongoose/issues/376 https://github.com/graphql-compose/graphql-compose/issues/382

brianlenz avatar Apr 28 '22 19:04 brianlenz