weaviate / weaviate

Weaviate is an open-source vector database that stores both objects and vectors, allowing for the combination of vector search with structured filtering with the fault tolerance and scalability of a cloud-native database​.
https://weaviate.io/developers/weaviate/
BSD 3-Clause "New" or "Revised" License
11.66k stars 807 forks source link

Typo/confusing text in error message #2493

Open ju-bezdek opened 1 year ago

ju-bezdek commented 1 year ago

When you are trying to query over class that does not exist you get very confusing message: Cannot query field "P_91d24398_6d5d_45d9_ba31_470959c8902e_topics" on type "GetObjectsObj".

This makes no sense for query like this: {Get{P_91d24398_6d5d_45d9_ba31_470959c8902e_topics(where: {operator: And operands: [{path: ["topic_id"] operator: Equal valueInt: 3}]} limit: 10000 ){documents{ ... on P_91d24398_6d5d_45d9_ba31_470959c8902e { labels } } }}}

Because obviously P_91d24398_6d5d_45d9_ba31_470959c8902e_topic is a class here, GetObjectsObj is probably the name of a method and field is not even mentioned there...

trengrj commented 1 year ago

Hi @ju-bezdek, this is an error message propagated from GraphQL validation which we should rename.