main.wasp file, the entities parameter is used to specify which entities you wish to use inside your API, Action, or Query[^2^][^3^][^4^][^5^]. For example, if you have a Task entity and you want to use it in your API, you would add it to the api declaration in Wasp like this[^5^]:context argument, giving you access to the Entity's Prisma API[^5^].entities parameter in an action declaration is used to specify which entities you wish to use inside your action[^1^][^2^][^3^]. Task entity and you want to use it in your action, you would add it to the action declaration in Wasp like this[^1^]:context argument, giving you access to the Entity's Prisma API[^2^]. This allows you to perform operations on the entity within the action, such as creating, updating, or deleting records.entitiesentitiesapiapi fooBar {
fn: import { fooBar } from "@src/apis",
entities: [Task],
httpRoute: (GET, "/foo/bar")
} action createTask {
fn: import { createTask } from "@src/actions.js",
entities: [Task]
}