ent
ent copied to clipboard
## Setup I have AInput that contains an inner BInput field that I want to setup like this: ``` @gqlInputObjectType() export class AInput { @gqlField({ class: "AInput", type: "BInput", })...
For example, I want to use the generated input type of the graphql create action for an ent, but I don't want to surface the create mutation itself. My current...
referenced in docs but no issue for it https://ent.dev/docs/actions/observers
A field defined as : ```js horseIDs: UUIDListType({ nullable: true, fieldEdge: { schema: 'Horse', inverseEdge: { name: 'competitionEntries', }, }, }), ``` generates the following code block in `getEditedFields`: ```js...
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
Instead of doing ```js export interface ISomePattern { someField: string; } ``` If you convert it to a type you can do ```js export type ISomePattern = Ent & {...
Setup is like this: ``` UserSchema: ... fields: { foodID: UUIDType({ fieldEdge: { schema: "Food", inverseEdge: "users" }, }), ... FoodSchema: ... edges: [ { name: "users", schemaName: "User", },...
* 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