wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.

Home Page:https://wasp-lang.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rethink our Operations API

sodic opened this issue · comments

When it comes to the most common happy path, our operations pretty well. You define your implementation, assign a type to it, and call it from the client (Queries through a hook, Actions directly or through a hook).

When we step off of this beaten, this get messy:

  • Calling Queries directly from the client is weird and improperly typed: #1923 .
  • Calling unspecified Queries from the client is improperly typed (discord)
  • Calling Actions and Queries directly on the server is difficult, undocumented, and improperly typed: #1909.