Ola Okelola
Ola Okelola
referenced in docs but no issue for it https://ent.dev/docs/actions/observers
https://github.com/lolopinto/ent/blob/0382a3e7e020621e270f9fc49306e23f88d0f1ff/examples/ent-rsvp/backend/src/graphql/resolvers/viewer_type.ts https://github.com/lolopinto/ent/blob/main/examples/simple/src/graphql/resolvers/gql_viewer.ts#L11
* createdAt shouldn't be changed in a create -> edit https://github.com/lolopinto/ent/blob/c43485039c8614d65291c290d6824a8b98332125/examples/simple/src/ent/tests/auth_code.test.ts#L68 * maybe type `Data` so it matches input? is that a breaking change? * definitely throw if data is...
names should theoretically match now and may not need it anymore after https://github.com/lolopinto/ent/pull/1757 probably safer to still have it for now?
IDField() things like https://github.com/lolopinto/ent/pull/673 GetFieldEdge https://github.com/lolopinto/ent/blob/138a461a50788dbf3a0a57bdfcc9c4f6e2552e05/internal/schema/base/common.go#L113-L121 maybe? all needs to be cleaned up
[doc](https://ent.dev/docs/core-concepts/authentication) doesn't show how to implement auth without `AuthHandler` and `registerAuthHandler` one can just return a context and make sure viewer is returned correctly from said `Context`
https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c * convert an example and see what it takes. started with `ent-rsvp/backend` @ https://github.com/lolopinto/ent/tree/example-esm * need to remove all `requires` e.g. when loading schema * confirm `npm run codegen`...
e.g. an edge that's shared across different types probably implemented with pattern support in edges and a way to reuse the same edge across things
there should be a `tsent init` command which will help create db, tsconfig.json, .gitignore maybe generate schema etc It can effectively do what https://github.com/lolopinto/ent-starter does