getting error when implementing a query - Wasp