Closed
Description
There are some errors in the QueryParser that make it throw unexpected exceptions:
-
ParseFieldsQuery
throws NullReferenceException when the field in the query doesn't exist, because of uncheckedSingleOrDefault()
(same thing inContextGraph.GetRelationshipName
btw) -
Page query parsing crashes with some malformed queries, e. g.
ParsePageQuery
will crash when querying with?page[size]=a
. This should probably be aTryParse
instead of aToInt32
I can prepare a PR if you want.