[Convex Ents](bug): One to many edge with weird type

my schema looks like that
const schema = defineEntSchema({
// other ents

  messages: defineEnt({})
// some fields
    .edges("reactions", { ref: true })
// some edges
    }),

  reactions: defineEnt({})
// some fields and edges
    .edge("message"),
});


and I'm querying the data like that:
 await message.edge("reactions"),


but as a type I get this back
(property) reactions: Ent<"reactions", {
    _id: Id<"reactions">;
    _creationTime: number;
    emoji: string;
    userId: Id<"users">;
    messageId: Id<"messages">;
}, EntDataModelFromSchema<SchemaDefinition<{
    privateChats: EntDefinition<VObject<{
        support: boolean;
    }, {
        ...;
    }, "required", "support">, {}, {}, {}, {
        ...;
    } & ... 1 more ... & {
        ...;
    }>;
    users: EntDefinition<...>;
    clearRequests: EntDefinition<...>;
    messages: EntDefinition<...>;
    reactions: EntDefinition<...>;
}, true>>>[]

which makes me get reactions with edge, edgeX and doc which I dont want

but I only want this type (without edge, edgeX and doc)

(property) reactions: Ent<"reactions", {
    _id: Id<"reactions">;
    _creationTime: number;
    emoji: string;
    userId: Id<"users">;
    messageId: Id<"messages">;
}, & EntInstance<EntDataModelFromSchema<SchemaDefinition<...>>, "reactions">
Was this page helpful?