sam-goodwin / eventual

Build scalable and durable micro-services with APIs, Messaging and Workflows
https://docs.eventual.ai
MIT License
174 stars 4 forks source link

Use an entity in place of a zod schema #393

Open sam-goodwin opened 1 year ago

sam-goodwin commented 1 year ago

Use-case: use an entity in the input schema of a command:

const MyEntity = entity("..", { .. });

export const myCommand = command("myCommand", {
  // cannot do this currently
  input: MyEntity
})